docs.emix.ai
language
language
  • 🇺🇸 English
  • 🇨🇳 Chinese
language
language
  • 🇺🇸 English
  • 🇨🇳 Chinese
Market
File Upload API
Market
File Upload API
  1. Grok Imagine
  • 开始使用
  • Market
  • Image Models
    • Seedream
      • Seedream4.5 文生图
      • Seedream4.5 图片编辑
      • Seedream5.0 Lite 文生图
      • Seedream5.0 Lite 图片编辑
      • Seedream5.0 Pro 文生图
      • Seedream5.0 Pro 图片编辑
    • Google
      • Google Nano Banana
      • Nano Banana Pro 图生图
      • 使用 nano-banana-2 生成内容
      • Nano Banana 2 Lite
    • Grok Imagine
      • Grok Imagine 文生图
        POST
      • Grok Imagine 图生图
        POST
    • GPT Image
      • GPT Image1.5 文生图
      • GPT Image1.5 图生图
      • GPT Image 2 文生图
      • GPT Image 2 图生图
    • Wan
      • Wan 2.7 Image
      • Wan 2.7 Image Pro
  • Video Models
    • Grok Imagine
      • Grok Imagine 文生视频
      • Grok Imagine 图生视频
      • 放大 Grok Imagine 视频
      • 扩展 Grok Imagine 视频
      • Grok Imagine Video 1.5 Preview
    • Kling
      • Kling-2.6 文生视频
      • Kling-2.6 图生视频
      • Kling AI Avatar Standard
      • Kling AI Avatar Pro
      • Kling V2.1 Master 图生视频
      • Kling V2.1 Master 文生视频
      • Kling V2.1 Pro
      • Kling V2.1 Standard
      • Kling-2.6 motion-control
      • Kling-3.0 motion-control
      • Kling 3.0
    • Bytedance
      • Bytedance Seedance 2.0
      • Bytedance Seedance 2.0 Fast
      • Bytedance Seedance 2.0 Mini
    • Wan
      • Wan 2.6 - 图转视频
      • Wan 2.6 - 文转视频
      • Wan 2.6 - 视频转视频
      • Wan 2.7 - 文转视频
      • Wan 2.7 - 图转视频
      • Wan 2.7 - 视频编辑
      • Wan 2.7 - 参考生视频
    • Veo3.1 API
      • VEO 3.1 文生视频
      • VEO 3.1 图生视频
      • VEO 3.1 参考生视频
    • HappyHorse
      • HappyHorse 1.1 图生视频
      • HappyHorse 1.1 文生视频
      • HappyHorse 1.1 参考图生成视频
    • Gemini Omni
      • Gemini Omni 生视频
      • Gemini Omni Audio 生语音
      • Gemini Omni Character 生角色
  • Chat Models
    • Claude
      • Claude Code 对接 emix.ai 使用指南
      • Claude Sonnet 5
    • Gemini
      • Gemini 3.5 Flash (openai)
    • Grok
      • Grok 4.5
      • Grok 4.3
  • 获取任务详情
    GET
  1. Grok Imagine

Grok Imagine 图生图

POST
/api/v1/client/tasks

文件上传要求#

在使用图像到图像 API 之前,您需要上传您的参考图像:
1
上传参考图像
使用文件上传 API 上传您的参考图像。
文件上传 API
了解如何上传图像并获取文件 URL
要求:
文件类型:JPEG、PNG 或 WebP 格式
最大文件大小:每个文件 10MB
内容:您想要用作生成参考的图像
2
获取文件 URL
上传后,您将收到可在 image_urls 参数中使用的文件 URL。
支持的格式:JPEG、PNG、WebP(最大:10MB)
每个请求最多一个图像

查询任务状态#

提交任务后,使用统一的查询端点来检查进度并获取结果:
获取任务详情
了解如何查询任务状态并获取生成结果
生产环境中,建议使用 callBackUrl 参数接收生成完成的自动通知,而非轮询状态端点。

相关资源#

市场概览
探索所有可用的模型
通用 API
检查积分和账户使用情况

Request

Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Body Params application/jsonRequired

Examples

Responses

🟢200
application/json
请求成功
Bodyapplication/json

Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://api.emix.ai/api/v1/client/tasks' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
    "model": "grok-imagine/image-to-image",
    "callBackUrl": "https://your-domain.com/api/callback",
    "input": {
        "prompt": "Recreate the Titanic movie poster with two adorable anthropomorphic cats in the same romantic pose at the bow of the ship. The male cat is an orange tabby wearing a vest, standing behind a white long-haired female cat in a lace dress, holding her paws as they stretch forward in the wind. Both cats are photorealistic with detailed fur, wind-swept hair, and dramatic sunset lighting (warm golden highlights, cool blue shadows). Background: the Titanic ship at dusk with four smokestacks, glowing deck lights, calm ocean, and orange-pink sunset sky. Center title: \"CATANIC\" in the same gold metallic serif style as Titanic, same size and position.",
        "image_urls": [
            "https://static.aiquickdraw.com/tools/example/1767602105243_0MmMCrwq.png"
        ]
    }
}'
Response Response Example
{
    "code": 200,
    "msg": "success",
    "data": {
        "taskId": "task_grok-imagine_1767694553297"
    }
}
Previous
Grok Imagine 文生图
Next
GPT Image1.5 文生图
Built with