Skip to content

Ideogram V3 Edit ​

This page is generated from the upstream official OpenAPI documentation. Endpoints, parameters and examples match the official docs; brand and API domain are replaced with ModelFold.

Endpoint ​

POST /jobs/createTask

Full URL: https://ai.modelfold.online/v1/jobs/createTask

Authentication: every request must include the Authorization: Bearer <API_KEY> header.

Image generation by ideogram/v3-edit

Output format: WebP.

Create Task ​

Use this endpoint to create a new image editing generation task.

  • Get Task Details — After submission, use the unified query endpoint to check task progress and retrieve results

TIP

For production use, we recommend providing the callBackUrl parameter so your service can receive completion notifications instead of polling for task status.

Request Parameters ​

Body (application/json) ​

ParameterTypeRequiredDescription
modelstringYesThe model name used for generation. This field is required.
- This endpoint must use the ideogram/v3-edit model Default:"ideogram/v3-edit"。 Allowed values:ideogram/v3-edit。 示例:ideogram/v3-edit。
callBackUrlstringNoCallback URL for task completion notifications. Optional parameter. If provided, the system will send a POST request to this URL when the task completes, whether it succeeds or fails. If omitted, no callback notification will be sent. 示例:https://your-domain.com/api/callback。
inputobjectYesInput parameters for the image editing task.
  input.promptstringYesThe prompt to fill the masked part of the image. Maximum length: 5000 characters. 示例:A dog wearing a cowboy hat。
  input.image_urlstringYesThe image URL to generate an image from. Needs to match the dimensions of the mask.
- Please provide the URL of the uploaded file, not raw file content
- Accepted types: image/jpeg, image/png, image/webp
- Max size: 10.0MB 示例:https://file.aiquickdraw.com/custom-page/akr/section-images/1755076859801ryyol1du.webp。
  input.mask_urlstringYesThe mask URL to inpaint the image. Needs to match the dimensions of the input image.
- Please provide the URL of the uploaded file, not raw file content
- Accepted types: image/jpeg, image/png, image/webp
- Max size: 10.0MB 示例:https://file.aiquickdraw.com/custom-page/akr/section-images/1755076871089hx9uonhc.webp。
  input.rendering_speedstringNoThe rendering speed to use. Default value: BALANCED.
- TURBO: Turbo
- BALANCED: Balanced
- QUALITY: Quality Default:"BALANCED"。 Allowed values:TURBO / BALANCED / QUALITY。 示例:BALANCED。
  input.expand_promptbooleanNoDetermine if MagicPrompt should be used in generating the request or not. Default value: true.
- Boolean value: true / false Default:true。 示例:true。
  input.seedintegerNoSeed for the random number generator.

Request Example ​

bash
curl -X POST "https://ai.modelfold.online/v1/jobs/createTask" \
  -H "Authorization: Bearer $MODELFOLD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "ideogram/v3-edit",
  "callBackUrl": "https://your-domain.com/api/callback",
  "input": {
    "prompt": "A dog wearing a cowboy hat",
    "image_url": "https://file.aiquickdraw.com/custom-page/akr/section-images/1755076859801ryyol1du.webp",
    "mask_url": "https://file.aiquickdraw.com/custom-page/akr/section-images/1755076871089hx9uonhc.webp",
    "rendering_speed": "BALANCED",
    "expand_prompt": true,
    "seed": 123456
  }
}'
json
{
  "model": "ideogram/v3-edit",
  "callBackUrl": "https://your-domain.com/api/callback",
  "input": {
    "prompt": "A dog wearing a cowboy hat",
    "image_url": "https://file.aiquickdraw.com/custom-page/akr/section-images/1755076859801ryyol1du.webp",
    "mask_url": "https://file.aiquickdraw.com/custom-page/akr/section-images/1755076871089hx9uonhc.webp",
    "rendering_speed": "BALANCED",
    "expand_prompt": true,
    "seed": 123456
  }
}

Response ​

200 — Request successful ​

参数类型必填说明
dataobject否—
  data.taskIdstring否Task ID, which can be used to query task status through the task detail endpoint. 示例:task_ideogram_1765180586443。
json
{
  "code": 200,
  "msg": "success",
  "data": {
    "taskId": "task_ideogram_1765180586443"
  }
}

500 — Server error. ​

Callback ​

onImageGenerated ​

Callback URL: {$request.body#/callBackUrl} (the callBackUrl in the request body).

Sent when the task succeeds or fails.

Callback body parameters

参数类型必填说明
codeinteger否200: success. 501: failure; see data.failCode and data.failMsg. Allowed values:200 / 501。 示例:200。
msgstring否Status message 示例:Playground task completed successfully.。
dataobject否—
  data.completeTimeinteger否Task completion time as a Unix timestamp in milliseconds 示例:1786427040000。
  data.costTimeinteger否Processing time in seconds. Present on both success and failure callbacks. 示例:48。
  data.createTimeinteger否Task creation time as a Unix timestamp in milliseconds 示例:1786426989000。
  data.creditsConsumednumber否Credits consumed by the task; 0 for failed tasks. 示例:7。
  data.modelstring否Model used for image editing 示例:ideogram/v3-edit。
  data.paramstring否Parameters submitted when creating the task, formatted as a JSON string 示例:{"model":"ideogram/v3-edit","callBackUrl":"https://your-domain.com/api/callback","input":{"prompt":"A dog wearing a cowboy hat","image_url":"https://file.aiquickdraw.com/custom-page/akr/section-images/1755076859801ryyol1du.webp","mask_url":"https://file.aiquickdraw.com/custom-page/akr/section-images/1755076871089hx9uonhc.webp","rendering_speed":"BALANCED","expand_prompt":true,"seed":123456}}。
  data.resultJsonstring否Image generation result formatted as a JSON string. resultUrls contains the URLs of the generated images. Present only when state is success. 示例:{"resultUrls":["https://tempfile.aiquickdraw.com/workers/images/image_90b6bf4499a80b74a2b5ee640b7aaf70.webp"]}。
  data.statestring否Task status Allowed values:success / fail。 示例:success。
  data.taskIdstring否Task ID 示例:4e029a320e97cff234e6e06827c3965e。
  data.updateTimeinteger否Use completeTime as the completion time; updateTime may equal createTime. 示例:1786427040000。
  data.failCodestring否Failure code, a numeric string such as "400" or "500". Present only when state is fail. 示例:500。
  data.failMsgstring否Failure reason. Present only when state is fail. 示例:&lt;error detail&gt;。

Success

json
{
  "code": 200,
  "msg": "Playground task completed successfully.",
  "data": {
    "taskId": "4e029a320e97cff234e6e06827c3965e",
    "model": "ideogram/v3-edit",
    "state": "success",
    "param": "{\"model\":\"ideogram/v3-edit\",\"callBackUrl\":\"https://your-domain.com/api/callback\",\"input\":{\"prompt\":\"A dog wearing a cowboy hat\",\"image_url\":\"https://file.aiquickdraw.com/custom-page/akr/section-images/1755076859801ryyol1du.webp\",\"mask_url\":\"https://file.aiquickdraw.com/custom-page/akr/section-images/1755076871089hx9uonhc.webp\",\"rendering_speed\":\"BALANCED\",\"expand_prompt\":true,\"seed\":123456}}",
    "resultJson": "{\"resultUrls\":[\"https://tempfile.aiquickdraw.com/workers/images/image_90b6bf4499a80b74a2b5ee640b7aaf70.webp\"]}",
    "completeTime": 1786427040000,
    "createTime": 1786426989000,
    "costTime": 48,
    "creditsConsumed": 7,
    "updateTime": 1786427040000
  }
}

Failure

json
{
  "code": 501,
  "msg": "Playground task failed.",
  "data": {
    "taskId": "4e029a320e97cff234e6e06827c3965e",
    "model": "ideogram/v3-edit",
    "state": "fail",
    "param": "{\"model\":\"ideogram/v3-edit\",\"callBackUrl\":\"https://your-domain.com/api/callback\",\"input\":{\"prompt\":\"A dog wearing a cowboy hat\",\"image_url\":\"https://file.aiquickdraw.com/custom-page/akr/section-images/1755076859801ryyol1du.webp\",\"mask_url\":\"https://file.aiquickdraw.com/custom-page/akr/section-images/1755076871089hx9uonhc.webp\",\"rendering_speed\":\"BALANCED\",\"expand_prompt\":true,\"seed\":123456}}",
    "failCode": "500",
    "failMsg": "<error detail>",
    "completeTime": 1786427040000,
    "createTime": 1786426989000,
    "costTime": 48,
    "creditsConsumed": 0,
    "updateTime": 1786427040000
  }
}

ModelFold — one API for all the best AI models.