薛定猫API官方文档
  1. ideogram 绘画
薛定猫API官方文档
  • 薛定猫API官方文档
    • 引言
    • 在线调试说明
    • 发出请求
    • 中转站基本介绍
      • API 快速开始指南
      • 联系客服
      • 分组详细表格
      • 分组的特殊性及价格差异
      • 如何新建指定分组的令牌
      • 代理接口调用地址
      • API Key 额度查询服务
      • 免费AI聊天项目导航
    • Chat模型
      • ChatGpt 接口
        • ChatGPT音频(Audio)
          • 创建语音
          • 创建转录
          • 创建翻译
          • 官方N测试
        • ChatGPT聊天(Chat)
          • 聊天完成对象
          • 聊天完成块对象
          • gemini图片创作接口
          • 创建聊天补全 (流式)
          • 聊天接口
          • 创建聊天补全 (非流)
          • 识图接口
          • 提交视频生成任务-chat格式
          • 创建聊天识图 (流式)
          • 创建聊天识图 (非流)
          • 列出模型
          • 创建聊天函数调用 (只能非流)
          • 创建结构化输出
          • 控制推理模型努力程度
        • ChatGPT自动补全(Completions)
          • 完成对象
          • 创建完成
        • ChatGPT嵌入(Embeddings)
          • 嵌入对象
          • 创建嵌入
        • ChatGPT绘画
          • DALL·E 3
          • 编辑
      • Anthropic Claude 接口
        • 聊天完成对象
        • 聊天完成块对象
        • 创建聊天补全 (流式) [原生格式]
        • gpt-4-all(分析图片)
        • gpt-4-all(生成图片)
        • GPTs对话
        • Stable-Diffusion
      • 谷歌Gemini
        • gemini图片创作接口
        • 聊天接口
        • 识图接口
    • 文生图模型
      • README
      • 图像对象
      • MJ绘画
        • 上传图片
        • 提交Imagine任务
        • 根据任务ID 查询任务状态
        • 根据ID列表查询任务
        • 获取任务图片的seed
        • 执行Action动作
        • 提交Blend任务
        • 提交Describe任务
        • 提交Shorten任务
        • 提交Modal
        • 提交swap_face任务
      • ideogram 绘画
        • Generate 3.0(文生图)Generate
          POST
        • Generate 3.0(图片编辑)Edit
          POST
        • ideogram
          POST
        • Generate 3.0(图片重制)Remix
          POST
        • Generate 3.0(图片重构)Reframe
          POST
        • Generate 3.0(替换背景) Replace Background
          POST
        • ideogram(文生图)
          POST
        • Remix(混合图)
          POST
        • Upscale(放大高清)
          POST
        • Describe(描述)
          POST
      • DALL·E 3
        POST
    • 文生视频模型
      • luma 视频生成
        • 官方API格式
          • 提交生成视频任务
          • 扩展视频
        • 查询任务
          • 查询单个任务
          • 批量获取任务
      • 快手可灵
        • Callback协议
        • 图像生成
        • 文生视频
        • 图生视频
        • 查询任务(免费)
        • 查询任务(免费)
      • Runway 视频生成
        • 提交视频生成任务
        • 查询视频任务(免费)
        • 官方Function calling调用
    • GPTs 相关
      • Stable-Diffusion
      • 创建聊天识图 (流式) best64
      • 创建聊天识图 (非流)
    • 文生音乐 Suno
      • 说明
      • 参数
      • 任务提交
        • 生成歌曲(灵感、自定义、续写)
        • 生成歌词
        • 歌曲拼接
      • 查询接口
        • 批量获取任务
        • 查询单个任务
      • 创建聊天创作图 (非流)
    • 系统API
      • 获取令牌列表
      • 新增令牌
    • Python配置方式
      • gpt realtime模型调用
      • python openai官方库(使用AutoGPT,langchain等)
      • python 连续对话
      • python 使用 语音转文本
      • python 使用文本转语音
      • python 使用Embeddings 向量化
      • python 调用DALL·E
      • python简单调用 openai function-calling demo
      • python 简单langchain 调用openai demo
      • python llama_index 配置
      • Python使用gpt-4o识别图片-本地图片
      • Python基础对话
      • Python使用gpt-4o识别图片
      • Python使用Claude识别图片
      • python 库流式输出
      • python request 请求 流式输出demo
      • python 使用gpt-image-1 创建编辑图片
    • nodejs 配置方式
      • nodejs 基础对话
    • 各种插件/软件使用教程
      • CLAUDE DEV 配置教程
      • chatgpt-on-wechat 配置教程
      • 沉浸式翻译 设置gpt翻译
      • nextchat 设置教程
      • aider 配置教程
      • Cursor 配置教程
      • lobechat 设置教程
      • chatgpt GPT Academic 学术优化配置gpt教程
      • zotero gpt 配置方法
      • 浏览器插件ChatGPT Sidebar
      • ChatBox(推荐使用)
      • 开源gpt_academic
    • 帮助中心
      • HTTP状态码及其含义
  1. ideogram 绘画

ideogram(文生图)

POST
https://xuedingmao.online/ideogram/generate
Generates images synchronously based on a given prompt and optional parameters.
具体参数请看官方文档:https://developer.ideogram.ai/api-reference/generate/post-generate-image
根据给定的提示和可选参数同步生成图像。
返回的图像 URL 在 24 小时内有效,超过该时间将无法访问图像。
已反代图片

请求参数

Header 参数
Content-Type
string 
必需
示例值:
application/json
Accept
string 
必需
示例值:
application/json
Authorization
string 
必需
示例值:
Bearer {{YOUR_API_KEY}}
Body 参数application/json
image_request
object 
必需
图像请求对象 (必填)
prompt
string 
必需
用于生成图像的提示词 (必填)
aspect_ratio
string 
必需
图像宽高比 (可选) 可选值:ASPECT_10_16/ASPECT_16_10/ASPECT_9_16/ASPECT_16_9/ASPECT_3_2/ASPECT_2_3/ASPECT_4_3/ASPECT_3_4/ASPECT_1_1/ASPECT_1_3/ASPECT_3_1
model
string 
必需
使用的模型 (可选) 默认V_2,可选值:V_1/V_1_TURBO/V_2/V_2_TURBO
magic_prompt_option
string 
必需
是否使用MagicPrompt (可选) 可选值:AUTO/ON/OFF
seed
integer 
必需
随机种子 (可选) 范围:0-2147483647
style_type
string 
必需
风格类型 (可选) 可选值:AUTO/GENERAL/REALISTIC/DESIGN/RENDER_3D/ANIME
negative_prompt
string 
必需
反向提示词 (可选) 描述不想在图像中出现的内容
num_images
integer 
必需
生成图片数量 (可选) 范围:1-8,默认1
resolution
string 
必需
分辨率 (可选) 可选值包含从512x1536到1536x640等多种分辨率组合
color_palette
object 
必需
颜色调色板 (可选)
示例

{
  "image_request": {
    "aspect_ratio": "ASPECT_10_16",
    "magic_prompt_option": "AUTO",
    "model": "V_1",
    "prompt": "A serene tropical beach scene. Dominating the foreground are tall palm trees with lush green leaves, standing tall against a backdrop of a sandy beach. The beach leads to the azure waters of the sea, which gently kisses the shoreline. In the distance, there is an island or landmass with a silhouette of what appears to be a lighthouse or tower. The sky above is painted with fluffy white clouds, some of which are tinged with hues of pink and orange, suggesting either a sunrise or sunset."
  }
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://xuedingmao.online/ideogram/generate' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {{YOUR_API_KEY}}' \
--header 'Content-Type: application/json' \
--data-raw '{
  "image_request": {
    "aspect_ratio": "ASPECT_10_16",
    "magic_prompt_option": "AUTO",
    "model": "V_1",
    "prompt": "A serene tropical beach scene. Dominating the foreground are tall palm trees with lush green leaves, standing tall against a backdrop of a sandy beach. The beach leads to the azure waters of the sea, which gently kisses the shoreline. In the distance, there is an island or landmass with a silhouette of what appears to be a lighthouse or tower. The sky above is painted with fluffy white clouds, some of which are tinged with hues of pink and orange, suggesting either a sunrise or sunset."
  }
}'

返回响应

🟢200成功
application/json
Body
created
string 
必需
data
array [object {6}] 
必需
is_image_safe
boolean 
可选
prompt
string 
可选
resolution
string 
可选
seed
integer 
可选
style_type
null 
可选
url
string 
可选
示例
{
  "created": "2024-12-15T17:32:00.965408+00:00",
  "data": [
    {
      "is_image_safe": true,
      "prompt": "A serene tropical beach scene. Dominating the foreground are tall palm trees with lush green leaves, standing tall against a backdrop of a sandy beach. The beach leads to the azure waters of the sea, which gently kisses the shoreline. In the distance, there is an island or landmass with a silhouette of what appears to be a lighthouse or tower. The sky above is painted with fluffy white clouds, some of which are tinged with hues of pink and orange, suggesting either a sunrise or sunset.",
      "resolution": "768x1232",
      "seed": 1785282233,
      "style_type": null,
      "url": "https://ideogram.ai/api/images/ephemeral/WkoxvqiOTaaCqG1nO2tQoA.png?exp=1734370337&sig=110fe96dc9e01002c8d837e5b4cde1aaa266195561d231ce76e19e095e478ffe"
    }
  ]
}
上一页
Generate 3.0(替换背景) Replace Background
下一页
Remix(混合图)
Built with