Rivya AI ডকস
মডেল API পেজ

Google Imagen4 Fast API integration

Rivya Public API v1 দিয়ে Google Imagen4 Fast ব্যবহার করুন: model id google-imagen4-fast, supported inputs, parameters, Files API rules, credits এবং response examples সহ।

Available via APIটেক্সট ইনপুট প্রস্তুতইমেজ
API model id

google-imagen4-fast

Inputs

text

Files API

minimal request-এর জন্য required নয়

Base credits

4

Capability

ইমেজ

Billing

FIXED

প্রম্পট সীমা

5000 characters

Request contract

model id top level-এ পাঠান। Model-specific controls params-এ থাকবে।

KeyTypeRequiredDefaultবিবরণ
modelstringYesgoogle-imagen4-fastgoogle-imagen4-fast API model id ব্যবহার করুন।
promptstringYes-এই model-এর জন্য maximum 5000 characters।
paramsobjectNo-Model-specific parameter object। allowed keys-এর জন্য নিচের rows ব্যবহার করুন।
client_request_idstringNo-আপনার system-এ requests trace করার optional client-side id।

Model parameters

KeyTypeRequiredDefaultRangeOptionsবিবরণ
aspect_ratioselectNo16:9-1:1, 16:9, 9:16, 3:4, 4:3Aspect ratio
negative_prompttextNo---Negative prompt
seednumberNo-min 0-প্রতিবার নতুন random result চাইলে empty রাখুন। একই integer reuse করলে আগের result reproduce বা fine-tune করা সহজ হয়। Prompt এবং অন্য key setting একই রকম থাকলেই শুধু result কাছাকাছি থাকে, এবং এটি guaranteed 1:1 match নয়।

Minimal request

{
  "model": "google-imagen4-fast",
  "prompt": "A clean editorial product image on a soft studio background",
  "params": {
    "aspect_ratio": "16:9",
    "negative_prompt": "যে বিষয়গুলো এড়াতে চান, optional",
    "seed": 0
  }
}

Create response

create endpoint public task id return করে। task succeeds বা fails না করা পর্যন্ত status endpoint poll করুন।

{
  "id": "task_google_imagen4_fast_example",
  "status": "queued",
  "model": "google-imagen4-fast",
  "reserved_credits": 4,
  "final_credits": 0,
  "created_at": "2026-05-11T00:00:00.000Z",
  "updated_at": "2026-05-11T00:00:00.000Z",
  "result": null,
  "error": null
}

Common errors

validation_failed, insufficient_credits, idempotency_conflict, rate_limited, not_found

create endpoint public task id return করে। task succeeds বা fails না করা পর্যন্ত status endpoint poll করুন।