কনটেন্টে যান

Kling Image · O3 · Text to Image

ইন্টিগ্রেট করুন

মডেল id kling-image/o3/text-to-image
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://vit.doitong.com/api/v1/run/kling-image/o3/text-to-image?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://vit.doitong.com/api/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

এই অনুরোধ: ০.০২৮$ ২৮ API ক্রেডিট এই পেজে চালান

API কী পান
Kling টেক্সট থেকে ছবি 4K আউটপুটরেফারেন্স ইনপুট4K পর্যন্ত #text-to-image

এলিমেন্ট-ভিত্তিক মুখ নিয়ন্ত্রণ ও সিরিজ আউটপুটসহ 1K, 2K বা 4K-এ O3 টেক্সট-টু-ইমেজ

Kling · ছবি

আপনার প্রথম ফলাফল এখানে আসবে

নিচে একটি রিকোয়েস্ট তৈরি করে আপনার API কী দিয়ে চালান। আউটপুট আমাদের স্টোরেজে কপি করা হয়, চিরকাল বা বিনামূল্যে ৭ দিন পর্যন্ত রাখা হয়।

একটি অনুরোধ তৈরি করুন

মডেল স্কিমা থেকে কন্ট্রোল তৈরি করা হয়। এগুলো পরিবর্তন করলে কোড ও মূল্য আপডেট হয়।

•আবশ্যক 88 / 2500

ছবি-জেনারেশন প্রম্পট, সর্বোচ্চ 2500 অক্ষর।

resolution ডিফল্ট 1K

আউটপুট ছবির রেজোলিউশন: স্ট্যান্ডার্ডের জন্য 1K, উচ্চের জন্য 2K অথবা অতি-উচ্চ রেজোলিউশনের জন্য 4K।

aspect_ratio ডিফল্ট 16:9

জেনারেট করা ছবির প্রস্থ-থেকে-উচ্চতার অনুপাত।

num_images ডিফল্ট 1

আউটপুট ছবির সংখ্যা, 1 থেকে 9; শুধু `result_type` হল `single` হলে প্রযোজ্য।

অ্যাডভান্সড result_type · output_format · series_amount · enable_safety_checker · elements
result_type ডিফল্ট single

আউটপুটের ধরন: `single` একটি ছবি তৈরি করে, আর `series` একাধিক সম্পর্কিত ছবি তৈরি করে।

output_format ডিফল্ট png

ফলাফল ছবির ফাইল ফরম্যাট।

সিরিজ ছবির সংখ্যা, 2 থেকে 9; শুধু `result_type` হল `series` হলে প্রযোজ্য।

ঐচ্ছিক face-control উপাদান, যা চরিত্র বা অবজেক্ট উপস্থাপন করে; প্রম্পটে @Element1, @Element2 ইত্যাদি দিয়ে উল্লেখ করা হয়।

POST /run/kling-image/o3/text-to-image?wait=20 মূল্য → ০.০২৮$
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://vit.doitong.com/api/v1/run/kling-image/o3/text-to-image?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://vit.doitong.com/api/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

এই অনুরোধ চালান

আপনার key এই ব্রাউজারেই থাকে: এটি শুধু Doitong API-তে পাঠানো হয় এবং Remember টিক দিলে কেবল localStorage-এ সংরক্ষিত হয়। একটি API কী পান

Kling Image · O3 · Text to Image সম্পর্কে

সর্বোচ্চ 2500 অক্ষরের একটি প্রম্পট থেকে ছবি তৈরি করে। `resolution` হলো 1K, 2K বা 4K, এবং `aspect_ratio` 16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3 ও 21:9 সমর্থন করে। 1-9টি ছবি, অথবা `result_type` ব্যবহার করে 2-9টি সম্পর্কিত ছবির সিরিজ তৈরি করুন। `elements` অক্ষর ও অবজেক্টের মুখ নিয়ন্ত্রণ করে।

প্যারামিটার

ক্যানোনিকাল নাম অথবা নেটিভ নাম—দুটো একসঙ্গে নয়—পাঠান। ক্যানোনিকাল নামগুলো

নামধরন ডিফল্টঅনুমোদিত বিবরণ
promptআবশ্যক
ধরনstring
≤ ২,৫০০টি অক্ষর
ছবি-জেনারেশন প্রম্পট, সর্বোচ্চ 2500 অক্ষর।
elementsঐচ্ছিক
ধরনobject[]
ঐচ্ছিক face-control উপাদান, যা চরিত্র বা অবজেক্ট উপস্থাপন করে; প্রম্পটে @Element1, @Element2 ইত্যাদি দিয়ে উল্লেখ করা হয়।
elements[].frontal_image_urlঐচ্ছিক
ধরনurl · image
ঐচ্ছিক সামনের দিকের ছবি, যা উপাদানটির প্রধান দৃশ্য সরবরাহ করে। ফাইলের আকার 10.0 MB-এর বেশি হতে পারবে না; প্রস্থ ও উচ্চতা উভয়ই কমপক্ষে 300px এবং অ্যাসপেক্ট রেশিও 0.40 থেকে 2.50 হতে হবে।
elements[].reference_image_urlsঐচ্ছিক
ধরনurl[] · image
ঐচ্ছিক 0–3টি অতিরিক্ত ছবি, যাতে অন্যান্য কোণ দেখানো হয়। প্রতিটি ফাইল সর্বোচ্চ 10.0 MB হতে পারবে, প্রস্থ ও উচ্চতা উভয়ই কমপক্ষে 300px এবং অ্যাসপেক্ট রেশিও 0.40 থেকে 2.50 হতে হবে।
resolutionঐচ্ছিক
ধরনenum
ডিফল্ট1K
1K2K4K
আউটপুট ছবির রেজোলিউশন: স্ট্যান্ডার্ডের জন্য 1K, উচ্চের জন্য 2K অথবা অতি-উচ্চ রেজোলিউশনের জন্য 4K।
result_typeঐচ্ছিক
ধরনenum
ডিফল্টsingle
singleseries
আউটপুটের ধরন: `single` একটি ছবি তৈরি করে, আর `series` একাধিক সম্পর্কিত ছবি তৈরি করে।
num_imagesঐচ্ছিক num_outputs
ধরনinteger
ডিফল্ট1
১ – ৯
আউটপুট ছবির সংখ্যা, 1 থেকে 9; শুধু `result_type` হল `single` হলে প্রযোজ্য।
series_amountঐচ্ছিক
ধরনinteger | null
২ – ৯
সিরিজ ছবির সংখ্যা, 2 থেকে 9; শুধু `result_type` হল `series` হলে প্রযোজ্য।
aspect_ratioঐচ্ছিক
ধরনenum
ডিফল্ট16:9
16:99:161:14:33:43:22:321:9
জেনারেট করা ছবির প্রস্থ-থেকে-উচ্চতার অনুপাত।
output_formatঐচ্ছিক
ধরনenum
ডিফল্টpng
jpegpngwebp
ফলাফল ছবির ফাইল ফরম্যাট।
enable_safety_checkerঐচ্ছিক
ধরনboolean
ডিফল্টtrue
কলকারী অনুমোদিত হলে false সেট করে স্ক্রিনিং শিথিল করা যায়।
আবশ্যক ক্যানোনিকাল নাম, এটিও গ্রহণযোগ্য

আউটপুট

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "kling-image/o3/text-to-image",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 28,
    "usd": "0.028",
    "charged": 28,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "output": {
    "images": [
      {
        "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
        "content_type": "image/jpeg",
        "file_name": "0-output.jpeg",
        "file_size": 1843200,
        "width": 1024,
        "height": 768
      }
    ]
  },
  "outputs": [
    {
      "type": "image",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "width": 1024,
      "height": 768,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://vit.doitong.com/api/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://vit.doitong.com/api/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
আপনার ফাইল, আপনার পছন্দপ্রতিটি outputs[].url আমাদের স্টোরেজে একটি কপি: চিরকাল রাখা হয় (প্রতি GB-মাস অনুযায়ী অর্থপ্রদত্ত) অথবা অ্যাকাউন্ট সেটিংস বা ?storage= অনুযায়ী বিনামূল্যে ৭ দিন পর্যন্ত।
প্রতিটি মডেলে একই গঠনছবি, ভিডিও এবং অডিও—সব ক্ষেত্রেই type, url, content_type, width, height এবং duration। output হলো মডেলের নিজস্ব ফলাফল অবজেক্ট।
আউটপুটের ফিল্ড
images
array of object {url, content_type, file_name, file_size, width, height}মডেল দ্বারা তৈরি ছবি।

আরও মডেল: টেক্সট থেকে ছবি

AI এজেন্টদের জন্য: এই পৃষ্ঠাটি Markdown হিসেবে এখানে আছে https://doitong.com/bn/developers/models/kling-image/o3/text-to-image.md. সব মডেল ও গাইড: https://doitong.com/developers/llms.txt