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.
Related Resources
- Model Marketplace — Explore all available models and capabilities
- Common API — Check account credits and usage
Request Parameters
Body (application/json)
| Parameter | Type | Required | Description |
|---|---|---|---|
model | string | Yes | The 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。 |
callBackUrl | string | No | Callback 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。 |
input | object | Yes | Input parameters for the image editing task. |
input.prompt | string | Yes | The prompt to fill the masked part of the image. Maximum length: 5000 characters. 示例:A dog wearing a cowboy hat。 |
input.image_url | string | Yes | The 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_url | string | Yes | The 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_speed | string | No | The rendering speed to use. Default value: BALANCED.- TURBO: Turbo- BALANCED: Balanced- QUALITY: Quality Default:"BALANCED"。 Allowed values:TURBO / BALANCED / QUALITY。 示例:BALANCED。 |
input.expand_prompt | boolean | No | Determine if MagicPrompt should be used in generating the request or not. Default value: true.- Boolean value: true / false Default:true。 示例:true。 |
input.seed | integer | No | Seed for the random number generator. |
Request Example
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
}
}'{
"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
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
data | object | 否 | — |
data.taskId | string | 否 | Task ID, which can be used to query task status through the task detail endpoint. 示例:task_ideogram_1765180586443。 |
{
"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
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
code | integer | 否 | 200: success. 501: failure; see data.failCode and data.failMsg. Allowed values:200 / 501。 示例:200。 |
msg | string | 否 | Status message 示例:Playground task completed successfully.。 |
data | object | 否 | — |
data.completeTime | integer | 否 | Task completion time as a Unix timestamp in milliseconds 示例:1786427040000。 |
data.costTime | integer | 否 | Processing time in seconds. Present on both success and failure callbacks. 示例:48。 |
data.createTime | integer | 否 | Task creation time as a Unix timestamp in milliseconds 示例:1786426989000。 |
data.creditsConsumed | number | 否 | Credits consumed by the task; 0 for failed tasks. 示例:7。 |
data.model | string | 否 | Model used for image editing 示例:ideogram/v3-edit。 |
data.param | string | 否 | 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.resultJson | string | 否 | 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.state | string | 否 | Task status Allowed values:success / fail。 示例:success。 |
data.taskId | string | 否 | Task ID 示例:4e029a320e97cff234e6e06827c3965e。 |
data.updateTime | integer | 否 | Use completeTime as the completion time; updateTime may equal createTime. 示例:1786427040000。 |
data.failCode | string | 否 | Failure code, a numeric string such as "400" or "500". Present only when state is fail. 示例:500。 |
data.failMsg | string | 否 | Failure reason. Present only when state is fail. 示例:<error detail>。 |
Success
{
"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
{
"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
}
}