跳到主要内容

flux携带参考图 / OpenAI兼容接口

OpenAPI Specification

openapi: 3.0.1
info:
title: ''
description: ''
version: 1.0.0
paths:
/v1/images/generations:
post:
summary: flux携带参考图 / OpenAI兼容接口
deprecated: false
description: |-
仅部分模型支持 图片 参考
例如:
seededit
flux-kontext
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: >-
https://replicate.delivery/pbxt/N55l5TWGh8mSlNzW8usReoaNhGbFwvLeZR3TX1NL4pd2Wtfv/replicate-prediction-f2d25rg6gnrma0cq257vdw2n4c.png
Make this a 90s cartoon
'n': 1
model: flux-kontext-pro
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-324138506-run
components:
schemas: {}
securitySchemes: {}
servers:
- url: '{{base_url}}'
description: 测试环境
- url: https://newapi.eronmind.com
description: 正式环境
security: []