ਸਮੱਗਰੀ ਵੱਲ ਜਾਓ

Nucleus Image

ਇੰਟੀਗ੍ਰੇਟ ਕਰੋ

ਮਾਡਲ id nucleus-image
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/nucleus-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://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

ਇਹ ਬੇਨਤੀ: ≈$0.01 10 API ਕ੍ਰੈਡਿਟ ਇਸ ਪੰਨੇ ’ਤੇ ਚਲਾਓ

API ਕੁੰਜੀ ਲਵੋ
Open model ਟੈਕਸਟ ਤੋਂ ਚਿੱਤਰ #stylized#transform#typography

ਸਪਾਰਸ ਮਿਸ਼ਰਣ-ਆਫ਼-ਐਕਸਪਰਟਸ ਡਿਫਿਊਜ਼ਨ ਡਿਜ਼ਾਈਨ ਅਤੇ 7 ਆਸਪੈਕਟ ਰੇਸ਼ੋ ਪ੍ਰੀਸੈੱਟਾਂ ਵਾਲਾ ਟੈਕਸਟ-ਤੋਂ-ਚਿੱਤਰ ਮਾਡਲ

Open model · ਚਿੱਤਰ

ਤੁਹਾਡਾ ਪਹਿਲਾ ਨਤੀਜਾ ਇੱਥੇ ਹੋਵੇਗਾ

ਹੇਠਾਂ ਬੇਨਤੀ ਬਣਾਓ ਅਤੇ ਆਪਣੀ API ਕੁੰਜੀ ਨਾਲ ਚਲਾਓ। ਆਉਟਪੁੱਟ ਸਾਡੇ ਸਟੋਰੇਜ ਵਿੱਚ ਕਾਪੀ ਕੀਤੇ ਜਾਂਦੇ ਹਨ ਅਤੇ ਹਮੇਸ਼ਾ ਲਈ ਜਾਂ ਮੁਫ਼ਤ ਵਿੱਚ 7 ਦਿਨ ਤੱਕ ਰੱਖੇ ਜਾਂਦੇ ਹਨ।

ਰਿਕਵੈਸਟ ਬਣਾਓ

ਕੰਟਰੋਲ ਮਾਡਲ ਸਕੀਮਾ ਤੋਂ ਤਿਆਰ ਹੁੰਦੇ ਹਨ। ਤੁਸੀਂ ਬਦਲਾਅ ਕਰਦੇ ਹੀ ਕੋਡ ਅਤੇ ਕੀਮਤ ਅੱਪਡੇਟ ਹੋ ਜਾਂਦੇ ਹਨ।

•ਲੋੜੀਂਦਾ

ਚਿੱਤਰ ਸਿਰਜਣਾ ਨੂੰ ਦਿਸ਼ਾ ਦੇਣ ਵਾਲਾ ਪ੍ਰੌਂਪਟ।

aspect_ratio ਡਿਫ਼ਾਲਟ 1:1

ਸਿਰਜੇ ਗਏ ਚਿੱਤਰ ਦਾ aspect ratio, Nucleus-Image ਦੇ ਨਿਰਧਾਰਤ presets ਦੇ ਸਥਿਰ ਸੰਗ੍ਰਹਿ ਵਿੱਚੋਂ ਚੁਣਿਆ ਗਿਆ।

num_images ਡਿਫ਼ਾਲਟ 1

ਸਿਰਜਣਾ ਲਈ ਮੰਗੀ ਗਈ ਚਿੱਤਰਾਂ ਦੀ ਗਿਣਤੀ।

ਉੱਨਤ negative_prompt · output_format · num_inference_steps · guidance_scale · seed · enable_safety_checker
ਡਿਫ਼ਾਲਟ

ਸਿਰਜਣਾ ਦੌਰਾਨ ਲਾਗੂ ਕੀਤਾ ਗਿਆ negative ਪ੍ਰੌਂਪਟ।

output_format ਡਿਫ਼ਾਲਟ png

ਨਤੀਜੇ ਵਾਲੇ ਚਿੱਤਰ ਦਾ ਫ਼ਾਈਲ ਫਾਰਮੈਟ।

ਡਿਫ਼ਾਲਟ 50

ਚਲਾਏ ਜਾਣ ਵਾਲੇ ਇਨਫ਼ਰੈਂਸ ਕਦਮਾਂ ਦੀ ਗਿਣਤੀ।

ਡਿਫ਼ਾਲਟ 8

classifier-free guidance ’ਤੇ ਲਾਗੂ ਕੀਤਾ ਗਿਆ scale।

ਸਿਰਜਣਾ ਨੂੰ ਦੁਹਰਾਉਣਯੋਗ ਬਣਾਉਣ ਵਾਲੀ seed value।

POST /run/nucleus-image?wait=20 ਕੋਟ → $0.01
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/nucleus-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://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

ਇਹ ਬੇਨਤੀ ਚਲਾਓ

ਤੁਹਾਡੀ key ਇਸ ਬ੍ਰਾਊਜ਼ਰ ਵਿੱਚ ਰਹਿੰਦੀ ਹੈ: ਇਹ ਸਿਰਫ਼ Doitong API ਨੂੰ ਭੇਜੀ ਜਾਂਦੀ ਹੈ ਅਤੇ ਸਿਰਫ਼ ਤਾਂ ਹੀ (localStorage) ਵਿੱਚ ਸੁਰੱਖਿਅਤ ਹੁੰਦੀ ਹੈ ਜੇ ਤੁਸੀਂ Remember ਚੁਣੋ। API ਕੁੰਜੀ ਪ੍ਰਾਪਤ ਕਰੋ

Nucleus Image ਬਾਰੇ

ਟੈਕਸਟ `prompt` ਤੋਂ ਚਿੱਤਰ ਬਣਾਉਂਦਾ ਹੈ, ਜਿਸ ਵਿੱਚ `negative_prompt` ਉਪਲਬਧ ਹੈ। ਆਸਪੈਕਟ ਰੇਸ਼ੋ 1:1, 16:9, 9:16, 4:3, 3:4, 3:2 ਅਤੇ 2:3 ਦੇ ਸੱਤ ਪ੍ਰੀਸੈੱਟਾਂ ਵਿੱਚੋਂ ਚੁਣਿਆ ਜਾਂਦਾ ਹੈ। ਤੁਸੀਂ `num_inference_steps` (1 ਤੋਂ 100), `guidance_scale` (0 ਤੋਂ 20) ਅਤੇ `seed` ਨਿਯੰਤਰਿਤ ਕਰ ਸਕਦੇ ਹੋ, ਅਤੇ png ਜਾਂ jpeg ਵਿੱਚ ਵੱਧ ਤੋਂ ਵੱਧ 2 ਚਿੱਤਰ ਮੰਗ ਸਕਦੇ ਹੋ।

ਪੈਰਾਮੀਟਰ

ਕੈਨੋਨਿਕਲ ਨਾਮ ਜਾਂ ਨੇਟਿਵ ਨਾਮ ਵਿੱਚੋਂ ਕੋਈ ਇੱਕ ਭੇਜੋ, ਦੋਵੇਂ ਨਹੀਂ। ਕੈਨੋਨਿਕਲ ਨਾਮ

ਨਾਮਕਿਸਮ ਡਿਫ਼ਾਲਟਮਨਜ਼ੂਰਸ਼ੁਦਾ ਵੇਰਵਾ
promptਲੋੜੀਂਦਾ
ਕਿਸਮstring
ਚਿੱਤਰ ਸਿਰਜਣਾ ਨੂੰ ਦਿਸ਼ਾ ਦੇਣ ਵਾਲਾ ਪ੍ਰੌਂਪਟ।
negative_promptਵਿਕਲਪਿਕ
ਕਿਸਮstring
ਡਿਫ਼ਾਲਟ
ਸਿਰਜਣਾ ਦੌਰਾਨ ਲਾਗੂ ਕੀਤਾ ਗਿਆ negative ਪ੍ਰੌਂਪਟ।
aspect_ratioਵਿਕਲਪਿਕ
ਕਿਸਮenum
ਡਿਫ਼ਾਲਟ1:1
1:116:99:164:33:43:22:3
ਸਿਰਜੇ ਗਏ ਚਿੱਤਰ ਦਾ aspect ratio, Nucleus-Image ਦੇ ਨਿਰਧਾਰਤ presets ਦੇ ਸਥਿਰ ਸੰਗ੍ਰਹਿ ਵਿੱਚੋਂ ਚੁਣਿਆ ਗਿਆ।
num_inference_stepsਵਿਕਲਪਿਕ
ਕਿਸਮinteger
ਡਿਫ਼ਾਲਟ50
1 – 100
ਚਲਾਏ ਜਾਣ ਵਾਲੇ ਇਨਫ਼ਰੈਂਸ ਕਦਮਾਂ ਦੀ ਗਿਣਤੀ।
guidance_scaleਵਿਕਲਪਿਕ
ਕਿਸਮnumber
ਡਿਫ਼ਾਲਟ8
0 – 20
classifier-free guidance ’ਤੇ ਲਾਗੂ ਕੀਤਾ ਗਿਆ scale।
seedਵਿਕਲਪਿਕ
ਕਿਸਮinteger | null
ਸਿਰਜਣਾ ਨੂੰ ਦੁਹਰਾਉਣਯੋਗ ਬਣਾਉਣ ਵਾਲੀ seed value।
num_imagesਵਿਕਲਪਿਕ num_outputs
ਕਿਸਮinteger
ਡਿਫ਼ਾਲਟ1
1 – 2
ਸਿਰਜਣਾ ਲਈ ਮੰਗੀ ਗਈ ਚਿੱਤਰਾਂ ਦੀ ਗਿਣਤੀ।
enable_safety_checkerਵਿਕਲਪਿਕ
ਕਿਸਮboolean
ਡਿਫ਼ਾਲਟtrue
ਸੁਰੱਖਿਆ ਜਾਂਚ, ਜੋ ਅਸੁਰੱਖਿਅਤ ਚਿੰਨ੍ਹਿਤ ਚਿੱਤਰਾਂ ਦੀ ਥਾਂ ਕਾਲੇ ਚਿੱਤਰ ਵਾਪਸ ਕਰਦੀ ਹੈ। true ਜਾਂਚ ਚਾਲੂ ਕਰਦਾ ਹੈ; false ਇਸਨੂੰ ਸਿਰਫ਼ ਅਧਿਕਾਰਤ ਖਾਤਿਆਂ ਲਈ ਬੰਦ ਕਰਦਾ ਹੈ, ਜਦਕਿ ਬਿਨਾਂ ਅਧਿਕਾਰ ਵਾਲੀਆਂ ਬੇਨਤੀਆਂ ਦੀ ਜਾਂਚ ਹਰ ਹਾਲਤ ਵਿੱਚ ਹੁੰਦੀ ਹੈ।
output_formatਵਿਕਲਪਿਕ
ਕਿਸਮenum
ਡਿਫ਼ਾਲਟpng
jpegpng
ਨਤੀਜੇ ਵਾਲੇ ਚਿੱਤਰ ਦਾ ਫ਼ਾਈਲ ਫਾਰਮੈਟ।
ਲੋੜੀਂਦਾ ਕੈਨੋਨਿਕਲ ਨਾਮ, ਇਹ ਵੀ ਸਵੀਕਾਰਿਆ ਜਾਂਦਾ ਹੈ

ਆਉਟਪੁੱਟ

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "nucleus-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": 10,
    "usd": "0.01",
    "charged": 10,
    "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",
        "width": 1024,
        "height": 768,
        "content_type": "image/jpeg"
      }
    ],
    "timings": {},
    "seed": 42,
    "has_nsfw_concepts": [
      false
    ],
    "prompt": "string"
  },
  "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://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
ਤੁਹਾਡੀਆਂ ਫ਼ਾਈਲਾਂ, ਤੁਹਾਡੀ ਚੋਣਹਰ outputs[].url ਸਾਡੇ ਸਟੋਰੇਜ ਵਿੱਚ ਇੱਕ ਕਾਪੀ ਹੈ: ਹਮੇਸ਼ਾ ਲਈ ਰੱਖੀ ਜਾਂਦੀ ਹੈ (ਪ੍ਰਤੀ GB-ਮਹੀਨਾ ਭੁਗਤਾਨ) ਜਾਂ 7 ਦਿਨ ਤੱਕ ਮੁਫ਼ਤ, ਤੁਹਾਡੀ ਖਾਤਾ ਸੈਟਿੰਗ ਜਾਂ ?storage= ਅਨੁਸਾਰ।
ਹਰ ਮਾਡਲ ’ਤੇ ਇੱਕੋ ਜਿਹਾ ਰੂਪਤਸਵੀਰਾਂ, ਵੀਡੀਓ ਅਤੇ ਆਡੀਓ ਸਭ ਲਈ type, url, content_type, width, height ਅਤੇ duration। output ਮਾਡਲ ਦਾ ਆਪਣਾ ਨਤੀਜਾ ਆਬਜੈਕਟ ਹੈ।
ਆਉਟਪੁੱਟ ਦੇ ਫ਼ੀਲਡ
images
array of object {url, width, height, content_type}ਤਿਆਰ ਕੀਤੇ ਚਿੱਤਰਾਂ ਦੀ ਫ਼ਾਈਲ ਜਾਣਕਾਰੀ।
timings
object
seed
integerਚਿੱਤਰ-ਸਿਰਜਣਾ ਸੀਡ, ਜਿਸ ਵਿੱਚ ਇਨਪੁੱਟ ਵਿੱਚ ਸੀਡ ਨਾ ਦੇਣ 'ਤੇ ਬੇਤਰਤੀਬ ਚੁਣੀ ਗਈ ਕੀਮਤ ਸ਼ਾਮਲ ਹੁੰਦੀ ਹੈ; ਨਹੀਂ ਤਾਂ ਦਿੱਤੀ ਕੀਮਤ ਦੁਹਰਾਈ ਜਾਂਦੀ ਹੈ।
has_nsfw_concepts
array of booleanਦੱਸਦਾ ਹੈ ਕਿ ਸਿਰਜੇ ਗਏ ਚਿੱਤਰਾਂ ਵਿੱਚ NSFW ਧਾਰਨਾਵਾਂ ਮੌਜੂਦ ਹਨ ਜਾਂ ਨਹੀਂ।
prompt
stringਚਿੱਤਰ ਸਿਰਜਣਾ ਦੌਰਾਨ ਵਰਤਿਆ ਜਾਣ ਵਾਲਾ ਪ੍ਰੌਂਪਟ।

AI ਏਜੰਟਾਂ ਲਈ: ਇਹ ਪੰਨਾ Markdown ਵਜੋਂ ਇੱਥੇ ਹੈ https://doitong.com/pa/developers/models/nucleus-image.md. ਸਾਰੇ ਮਾਡਲ ਅਤੇ ਗਾਈਡ: https://doitong.com/developers/llms.txt