Soul 2.0
Generate 1–4 realistic photos of people, fashion and street style from a prompt in one of 33 styles, billed per image.
Soul 2.0 (product soul) is a creative model for realistic photos of people, fashion, street style and UGC-style shots. It generates from text: you write a prompt and pick one of 33 styles. One task makes 1–4 images, billed per image.
Create a task
https://api.nanoapi.ai/v1/tasksUse the shared create endpoint with model: "soul-2.0".
Headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer <API key>, see Authentication. |
Content-Type | Yes | application/json |
Idempotency-Key | No | A unique string for every new task, ideally a UUID (1–255 characters). See Preventing duplicate tasks. |
Body
| Parameter | Type | Required | Description |
|---|---|---|---|
model | string | Yes | soul-2.0 |
prompt | string | Yes | What to generate, at most 8000 characters. Text such as @Image1 is read as plain text. |
resolution | string | Yes | 1.5k or 2k, both at the same price. |
aspect_ratio | string | Yes | 1:1, 16:9, 9:16, 4:3, 3:4, 3:2 or 2:3. |
style | string | Yes | One of the 33 styles, for example flash_editorial. Send general when you don't want a particular style. |
num_outputs | integer | Yes | How many images, 1–4, each generated on its own. All of them are frozen; only the ones generated are charged, see Pricing. |
webhook_url | string | No | Notified when the task succeeds or fails: https, up to 2048 characters, not a private, loopback or reserved address. See Webhooks. |
Any other parameter, such as image_urls, seed or a negative prompt, is a request error.
Two 2k images in the flash_editorial style:
curl https://api.nanoapi.ai/v1/tasks \
-H "Authorization: Bearer $NANOAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "soul-2.0",
"prompt": "a young woman in a denim jacket standing on a city street, natural light",
"resolution": "2k",
"aspect_ratio": "3:4",
"style": "flash_editorial",
"num_outputs": 2
}'Response: 200 OK, the new task (fields). Keep data.id to get the result; the task can still fail, see Errors.
{
"code": 200,
"message": "success",
"data": {
"object": "task",
"id": "tk_01jbn7d2k9w4x6z8c1v3b5m7q9",
"model": "soul-2.0",
"status": "queued",
"error": null,
"created_at": "2026-11-23T08:30:00Z"
}
}Get the result
As a rough guide (generation only, not counting the queue, plus a few seconds to store the files; slower when the provider is busy): about 16–40 seconds per image. Get the result through the webhook if you sent webhook_url, or poll GET /v1/tasks/{task_id} at most once every 15 seconds until status is succeeded or failed (several tasks at once: ids in List tasks).
The request above once it has succeeded (other fields omitted; all fields: The task object):
{
"status": "succeeded",
"input": {
"prompt": "a young woman in a denim jacket standing on a city street, natural light",
"resolution": "2k",
"aspect_ratio": "3:4",
"style": "flash_editorial"
},
"num_outputs": 2,
"outputs": [
{
"index": 0,
"type": "image",
"url": "https://cdn.nanoapi.ai/h/tk_01jbn7d2k9w4x6z8c1v3b5m7q9_1_1795422690.png",
"preview_url": "https://cdn.nanoapi.ai/h/tk_01jbn7d2k9w4x6z8c1v3b5m7q9_1_1795422690_compressed.jpg"
},
{
"index": 1,
"type": "image",
"url": "https://cdn.nanoapi.ai/h/tk_01jbn7d2k9w4x6z8c1v3b5m7q9_2_1795422690.png",
"preview_url": "https://cdn.nanoapi.ai/h/tk_01jbn7d2k9w4x6z8c1v3b5m7q9_2_1795422690_compressed.jpg"
}
],
"billing": {
"currency": "USD",
"frozen": "…", // 2 × the price per image
"charged": "…", // the same
"refunded": "0.00",
"billed_seconds": null
}
}| Field | Soul 2.0 |
|---|---|
outputs | One item per generated image, at most num_outputs. |
outputs[].type | image |
outputs[].url | The original image, a PNG of about 3–5 MB, for downloading or full-size display: don't load it in lists. |
outputs[].preview_url | A JPEG preview, at most 1024 pixels on the long side, for lists and thumbnails, see Outputs. |
billing.billed_seconds | Always null: images are billed per image. |
input | The parameters you sent. |
Image sizes
Width × height in pixels, as measured:
resolution | aspect_ratio | Size |
|---|---|---|
2k | 1:1 | 2048×2048 |
2k | 3:4 | 1536×2048 |
2k | 16:9 | 2048×1152 |
1.5k | 3:4 | 1152×1536 |
The request above gives two 1536×2048 images.
Fewer images than requested
Each image is generated on its own. If some can't be made (for example because moderation blocked them), the task still succeeded: outputs only has the images that were generated, fewer than num_outputs. Only those are charged and the rest of the frozen amount is returned (billing.refunded). The task fails only when no image could be generated, and then everything frozen is returned: if at least one of them was blocked by moderation, the reason is content_policy (not every image has to be blocked, the others may have failed for other reasons), otherwise usually generation_failed. outputs[].index numbers the generated images from 0 without gaps, so when there are fewer it doesn't match the position in your request: don't use it to pair images with anything.
Styles
Send a style value from the table exactly as written: any other spelling or case is a request error with param style. Send general when you don't want a particular style.
style | Style |
|---|---|
general | General |
warm_ambient | Warm ambient |
y2k_studio | Y2K studio |
swag_era | Swag era |
theatrical_light | Theatrical light |
y2k_street | Y2K street |
flash_editorial | Flash editorial |
old_smartphone | Old smartphone |
street_photography | Street photography |
retro_bw | Retro BW |
asian_nostalgia | Asian nostalgia |
surreal_solarization | Surreal solarization |
subtle_flash | Subtle flash |
digital_camera | Digital camera |
siren | Siren |
mystique_city | Mystique city |
candy_pop | Candy pop |
double_exposure | Double exposure |
2000s_band | 2000s band |
frutiger_aero | Frutiger aero |
drain | Drain |
extraterrestrial | Extraterrestrial |
editorial_street_style | Editorial street style |
nature_light | Nature light |
new_indie | New Indie |
underwater | Underwater |
80s_horror | 80s horror |
disposable_camera | Disposable camera |
neutral_pastel_film | Neutral pastel film |
warm_vivid_film | Warm vivid film |
bw_film | BW film |
warm_contrast_film | Warm contrast film |
muted_cool_film | Muted cool film |
When to use another model
- Text in the image (it tends to come out garbled), a strong illustration style, or edits to a reference image: use Nano Banana 2.1 or GPT Image 2.6.
- Every image shows a different person. To keep the same person across images, use Nano Banana 2.1 or GPT Image 2.6 with the same reference photo of that person each time.
Pricing
frozen = price per image × num_outputs
charged = price per image × images generatedLoading the current prices…
resolution(1.5kand2kcost the same),aspect_ratioandstyledon't change the price.- The cost of images that aren't generated is returned, see Fewer images than requested.
Current prices, to show the cost before submitting: GET /v1/products (one prices row per resolution). The task's billing.frozen is the amount that counts; freezing and charging: Billing.
Errors
Request errors
A request that fails returns an HTTP error, and no task is created:
{
"code": 400,
"message": "Field required",
"error": {
"type": "invalid_request",
"param": "style",
"details": null
},
"request_id": "rq_01jb8z9x2c4v6b8n0m1q3w5e7r"
}| HTTP status | error.type | Description |
|---|---|---|
| 400 | invalid_request | A required parameter is missing, a value breaks the rules in the parameter table (a style must match the styles exactly), or a parameter isn't accepted; param names it |
| 401 | invalid_api_key | The API key is invalid, deleted or has been reset |
| 402 | insufficient_balance | Your available balance is 0 |
| 402 | spend_limit_exceeded | One of the API key's spend limits is used up |
| 403 | account_suspended | Your account has been suspended |
| 409 | idempotency_key_reused | The Idempotency-Key was already used with a different request body |
| 429 | rate_limited | Too many requests |
| 500 | internal_error | A server error; the task may have been created |
details and how to handle each error: Create a task → Errors.
Task failures
A created task can still fail: its status turns failed and the reason is in error, with no HTTP status. A failed task is never charged; anything frozen is returned in full.
{
"status": "failed",
"error": {
"type": "content_policy",
"message": "The input was rejected by the content policy because it may contain NSFW content. Please change the input files or prompt."
}
}error.type | Description |
|---|---|
content_policy | The prompt or the images break the content policy (adult content, a protected likeness or copyrighted material): no image was generated and at least one was blocked; when only some are blocked the task still succeeds, see Fewer images than requested |
insufficient_balance | Your available balance can't cover this task |
spend_limit_exceeded | This task would go over one of the API key's spend limits |
generation_failed | Generation failed |
queue_timeout | Not started within 30 minutes of being queued |
internal_error | An internal error |
Branch on error.type; message is an English explanation for developers and may change. When each reason can happen, whether anything was frozen, and the message texts: Failure reasons.