ideogram(文生图)
OpenAPI Specification
yaml
openapi: 3.0.1
info:
title: ''
description: ''
version: 1.0.0
paths:
/ideogram/generate:
post:
summary: ideogram(文生图)
deprecated: false
description: >-
Generates images synchronously based on a given prompt and optional
parameters.
具体参数请看官方文档:https://developer.ideogram.ai/api-reference/api-reference/describe
根据给定的提示和可选参数同步生成图像。
返回的图像 URL 在 24 小时内有效,超过该时间将无法访问图像。
已反代图片
tags:
- 绘画模型/Ideogram
parameters:
- name: Content-Type
in: header
description: ''
required: true
example: application/json
schema:
type: string
- name: Accept
in: header
description: ''
required: true
example: application/json
schema:
type: string
- name: Authorization
in: header
description: ''
required: true
example: Bearer {{YOUR_API_KEY}}
schema:
type: string
requestBody:
content:
application/json:
schema:
type: object
properties:
image_request:
type: object
properties:
prompt:
description: 用于生成图像的提示词 (必填)
type: string
aspect_ratio:
description: >-
图像宽高比 (可选)
可选值: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
type: string
model:
description: 使用的模型 (可选) 默认V_2,可选值:V_1/V_1_TURBO/V_2/V_2_TURBO
type: string
magic_prompt_option:
description: 是否使用MagicPrompt (可选) 可选值:AUTO/ON/OFF
type: string
seed:
description: 随机种子 (可选) 范围:0-2147483647
type: integer
style_type:
description: >-
风格类型 (可选)
可选值:AUTO/GENERAL/REALISTIC/DESIGN/RENDER_3D/ANIME
type: string
negative_prompt:
description: 反向提示词 (可选) 描述不想在图像中出现的内容
type: string
num_images:
description: 生成图片数量 (可选) 范围:1-8,默认1
type: integer
resolution:
description: 分辨率 (可选) 可选值包含从512x1536到1536x640等多种分辨率组合
type: string
color_palette:
type: object
properties:
name:
description: >-
预设调色板名称 (与members二选一)
可选值:EMBER/FRESH/JUNGLE/MAGIC/MELON/MOSAIC/PASTEL/ULTRAMARINE
type: string
required:
- name
description: 颜色调色板 (可选)
x-apifox-orders:
- name
required:
- prompt
- aspect_ratio
- model
- magic_prompt_option
- seed
- style_type
- negative_prompt
- num_images
- resolution
- color_palette
description: 图像请求对象 (必填)
x-apifox-orders:
- prompt
- aspect_ratio
- model
- magic_prompt_option
- seed
- style_type
- negative_prompt
- num_images
- resolution
- color_palette
required:
- image_request
x-apifox-orders:
- image_request
example:
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.
responses:
'200':
description: ''
content:
application/json:
schema:
type: object
properties:
created:
type: string
data:
type: array
items:
type: object
properties:
is_image_safe:
type: boolean
prompt:
type: string
resolution:
type: string
seed:
type: integer
style_type:
type: 'null'
url:
type: string
required:
- created
- data
headers: {}
x-apifox-name: 成功
security: []
x-apifox-folder: 绘画模型/Ideogram
x-apifox-status: released
x-run-in-apifox: https://app.apifox.com/web/project/5443236/apis/api-244680463-run
components:
schemas: {}
securitySchemes:
bearer:
type: http
scheme: bearer
servers:
- url: https://www.anyapi.vip
description: 正式环境
security:
- bearer: []