openapi: 3.0.1
info:
title: ''
description: ''
version: 1.0.0
paths:
/v1/images/generations:
post:
summary: recraftv3 / OpenAI兼容接口
deprecated: false
description: |-
model 支持
recraftv3
recraftv3-halloween
size 支持
1024x512
1024x1024
1024x576
1024x768
1024x512
512x1024
512x768
1280x960
1280x960
960x1280
960x1280
768x1366
768x512
1366x768
1344x576
tags:
- 模型接口/文生图接口
parameters:
- name: Authorization
in: header
description: ''
required: true
example: sk-
schema:
type: string
default: sk-
requestBody:
content:
application/json:
schema:
type: object
properties:
prompt:
type: string
description: 所需图像的文本描述。最大长度为 1000 个字符。
'n':
type: string
description: 要生成的图像数。必须介于 1 和 10 之间。
size:
type: string
description: 生成图像的大小。必须是256x256、512x512或 1024x1024之一。
x-apifox-orders:
- prompt
- 'n'
- size
required:
- prompt
- 'n'
- size
example:
prompt: A colorful sunset over the mountains
'n': 1
style: realistic_image
model: recraftv3
size: 1024x1024
responses:
'200':
description: ''
content:
application/json:
schema:
type: object
properties: {}
example:
created: 1589478378
data:
- url: https://...
- url: https://...
headers: {}
x-apifox-name: 成功
security: []
x-apifox-folder: 模型接口/文生图接口
x-apifox-status: released
x-run-in-apifox: https://app.apifox.com/web/project/5503894/apis/api-324138439-run
components:
schemas: {}
securitySchemes: {}
servers:
- url: '{{base_url}}'
description: 测试环境
- url: https://newapi.eronmind.com
description: 正式环境
security: []