Skip to content

Recraft - Crisp Upscale ​

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.

Enhance image resolution and quality using advanced AI upscaling powered by Recraft

Query Task Status ​

After submitting a task, use the unified query endpoint to check progress and retrieve results:

  • Get Task Details — Learn how to query task status and retrieve generation results

TIP

For production use, we recommend using the callBackUrl parameter to receive automatic notifications when generation completes, rather than polling the status endpoint.

Request Parameters ​

Body (application/json) ​

ParameterTypeRequiredDescription
modelstringYesThe model name to use for generation. Required field.
- Must be recraft/crisp-upscale for this endpoint Default:"recraft/crisp-upscale"。 Allowed values:recraft/crisp-upscale。 示例:recraft/crisp-upscale。
callBackUrlstringNoThe URL to receive generation task completion updates. Optional but recommended for production use.
- System will POST task status and results to this URL when generation completes
- Callback includes generated content URLs and task information
- Your callback endpoint should accept POST requests with JSON payload containing results
- Alternatively, use the Get Task Details endpoint to poll task status
- To ensure callback security, see Webhook Verification Guide for signature verification implementation 示例:https://your-domain.com/api/callback。
inputobjectNoInput parameters for the generation task
  input.imagestringYesImage to upscale (File URL after upload, not file content; Accepted types: image/jpeg, image/png, image/webp; Max size: 10.0MB) 示例:https://file.aiquickdraw.com/custom-page/akr/section-images/1757169577325ijj8vwvt.jpg。

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": "recraft/crisp-upscale",
  "callBackUrl": "https://your-domain.com/api/callback",
  "input": {
    "image": "https://file.aiquickdraw.com/custom-page/akr/section-images/1757169577325ijj8vwvt.jpg"
  }
}'
json
{
  "model": "recraft/crisp-upscale",
  "callBackUrl": "https://your-domain.com/api/callback",
  "input": {
    "image": "https://file.aiquickdraw.com/custom-page/akr/section-images/1757169577325ijj8vwvt.jpg"
  }
}

Response ​

200 — Request successful ​

json
{
  "code": 200,
  "msg": "success",
  "data": {
    "taskId": "task_recraft_1765177373893"
  }
}

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, represented as a Unix timestamp in milliseconds 示例:1786433472000。
  data.costTimeinteger否Processing time in seconds. Present on both success and failure callbacks. 示例:2。
  data.createTimeinteger否Task creation time, represented as a Unix timestamp in milliseconds 示例:1786433469000。
  data.creditsConsumednumber否Credits consumed by the task; 0 for failed tasks. 示例:0.5。
  data.modelstring否Image enhancement model used for the task 示例:recraft/crisp-upscale。
  data.paramstring否Parameters submitted when creating the task, in JSON string format 示例:{"input":"{\"image\":\"https://file.aiquickdraw.com/custom-page/akr/section-images/1757169577325ijj8vwvt.jpg\"}","callBackUrl":"https://your-domain.com/api/callback","model":"recraft/crisp-upscale"}。
  data.resultJsonstring否Image enhancement result in JSON string format. resultUrls contains the list of processed image URLs. Present only when state is success. 示例:{"resultUrls":["https://tempfile.aiquickdraw.com/a2/d5606246da3f4536d267de92b43de9d2_1786433470931.jpg"]}。
  data.statestring否Task status Allowed values:success / fail。 示例:success。
  data.taskIdstring否Task ID 示例:d5606246da3f4536d267de92b43de9d2。
  data.updateTimeinteger否Use completeTime as the completion time; updateTime may equal createTime. 示例:1786433472000。
  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": "d5606246da3f4536d267de92b43de9d2",
    "model": "recraft/crisp-upscale",
    "state": "success",
    "param": "{\"input\":\"{\\\"image\\\":\\\"https://file.aiquickdraw.com/custom-page/akr/section-images/1757169577325ijj8vwvt.jpg\\\"}\",\"callBackUrl\":\"https://your-domain.com/api/callback\",\"model\":\"recraft/crisp-upscale\"}",
    "resultJson": "{\"resultUrls\":[\"https://tempfile.aiquickdraw.com/a2/d5606246da3f4536d267de92b43de9d2_1786433470931.jpg\"]}",
    "completeTime": 1786433472000,
    "createTime": 1786433469000,
    "costTime": 2,
    "creditsConsumed": 0.5,
    "updateTime": 1786433472000
  }
}

Failure

json
{
  "code": 501,
  "msg": "Playground task failed.",
  "data": {
    "taskId": "d5606246da3f4536d267de92b43de9d2",
    "model": "recraft/crisp-upscale",
    "state": "fail",
    "param": "{\"input\":\"{\\\"image\\\":\\\"https://file.aiquickdraw.com/custom-page/akr/section-images/1757169577325ijj8vwvt.jpg\\\"}\",\"callBackUrl\":\"https://your-domain.com/api/callback\",\"model\":\"recraft/crisp-upscale\"}",
    "failCode": "500",
    "failMsg": "<error detail>",
    "completeTime": 1786433472000,
    "createTime": 1786433469000,
    "costTime": 2,
    "creditsConsumed": 0,
    "updateTime": 1786433472000
  }
}

ModelFold — one API for all the best AI models.