openapi: 3.0.1
info:
title: ''
description: ''
version: 1.0.0
paths:
/v1/images/generations:
post:
summary: flux / OpenAI兼容接口
deprecated: false
description: >-
image_size Available options: 1024x1024, 512x1024, 768x512, 768x1024,
1024x576, 576x1024
seed Required range: 0 < x < 9999999999
prompt_enhancement: default: false(Rewrite prompts into detailed,
model-friendly versions when switched on.)
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:
model: black-forest-labs/flux-schnell
prompt: >-
black forest gateau cake spelling out the words "FLUX SCHNELL",
tasty, food photography, dynamic shot
go_fast: true
num_outputs: 1
aspect_ratio: '1:1'
output_format: webp
output_quality: 80
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-324138067-run
components:
schemas: {}
securitySchemes: {}
servers:
- url: '{{base_url}}'
description: 测试环境
- url: https://newapi.eronmind.com
description: 正式环境
security: []