跳转到内容

Ideogram · Custom Models

集成

模型 id ideogram/custom-models
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/ideogram/custom-models?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "images_data_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

此请求: $40.00 40,000 API 积分 在此页面运行

获取 API 密钥
Ideogram 训练 #stylized#transform

根据包含 10-100 张图像的 ZIP 训练自定义 Ideogram 模型

Ideogram · 文件

你的第一个结果将在此显示

在下方构建请求,并使用你的 API 密钥运行。输出会复制到我们的存储中,可永久保存或免费保存 7 天。

构建请求

控件根据模型架构生成。更改控件时,代码和价格会同步更新。

•必填

通过 ZIP URL 提供训练数据,其中包含 10 至 100 张 JPEG、PNG 或 WebP 图像。要使用标题指导训练,可选地添加 ``<stem>.txt`` 旁车文件;匹配使用每个图像和标题共享的文件名 `<stem>`。

POST /run/ideogram/custom-models?wait=20 报价 → $40.00
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/ideogram/custom-models?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "images_data_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

运行此请求

你的密钥会保留在此浏览器中:仅发送到 Doitong API;只有勾选“记住”后才会保存到 localStorage。 获取 API 密钥

关于 Ideogram · Custom Models

训练端点接收 `images_data_url`,其内容为包含 10 至 100 张 JPEG、PNG 或 WebP 图像的 ZIP 压缩包。可选地加入名为 `<stem>.txt` 的描述文件以指导训练。返回 `model_id` 和供生成端点使用的自定义模型 URI。

参数

名称类型 默认值允许值 描述
images_data_url必填
类型string
通过 ZIP URL 提供训练数据,其中包含 10 至 100 张 JPEG、PNG 或 WebP 图像。要使用标题指导训练,可选地添加 ``<stem>.txt`` 旁车文件;匹配使用每个图像和标题共享的文件名 `<stem>`。
必填

输出

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "ideogram/custom-models",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 40000,
    "usd": "40.00",
    "charged": 40000,
    "refunded": 0
  },
  "input": {
    "images_data_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  },
  "output": {
    "model_id": "string",
    "custom_model_uri": "string"
  },
  "outputs": [
    {
      "type": "file",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
你的文件,由你选择每个 outputs[].url 都是存储中的副本:可永久保存(按 GB-月付费),也可免费保存 7 天,由账户设置或 ?storage= 决定。
每个模型的结构相同图像、视频和音频均包含 type、url、content_type、width、height 和 duration。output 是模型自身的结果对象。
输出字段
model_id
string要提供给 /generate 的 Ideogram 模型标识符。
custom_model_uri
string通过 `custom_model_uri` 暴露的训练模型 URI,用于直接调用 Ideogram v3 的公共生成路由。使用 `/generate` 的调用方则会根据 `model_id` 自动解析 URI。

更多模型:训练

对于 AI 代理:此页面的 Markdown 版本位于 https://doitong.com/zh/developers/models/ideogram/custom-models.md. 所有模型和指南: https://doitong.com/developers/llms.txt