即梦4 edits
接口:POST /v1/images/edits 归属:绘图模型/ 豆包(即梦、火山)绘图/即梦4 调用地址:Base URL https://api.allyang.cn(OpenAI 兼容前缀 https://api.allyang.cn/v1)+ 上述路径 鉴权:请求头 Authorization: Bearer <你的令牌>;令牌在控制台「令牌管理」创建 说明:下方为本接口契约。路径、字段名与枚举取值与线上接口一致;叙述文字已按本平台口径重写。价格、并发与限流等数值以控制台及实际返回为准,未确认处标注「待补」。
OpenAPI Specification
yaml
openapi: 3.0.1
info:
title: ''
description: ''
version: 1.0.0
paths:
/v1/images/edits:
post:
summary: 即梦4 edits
description: ''
tags:
- 绘图模型/ 豆包(即梦、火山)绘图/即梦4
parameters:
- name: Authorization
in: header
description: ''
required: false
example: Bearer {{YOUR_API_KEY}}
schema:
type: string
default: Bearer {{YOUR_API_KEY}}
requestBody:
content:
multipart/form-data:
schema:
type: object
properties:
model:
example: doubao-seedream-4-0-250828
type: string
image:
format: binary
type: string
example: >-
cmMtdXBsb2FkLTE2ODc4MzMzNDc3NTEtMjA=/31225951_59371037e9_small.png
mask:
example: ''
type: string
prompt:
example: A cute baby sea otter wearing a beret.
type: string
'n':
example: '1'
type: string
size:
example: 1024x1024
type: string
response_format:
example: url
type: string
required:
- model
- image
- prompt
examples: {}
responses:
'200':
description: ''
content:
application/json:
schema:
type: object
properties: {}
example:
data:
- url: >-
https://api.allyang.cn/<外部地址已按合规要求移除>
- url: >-
https://api.allyang.cn/<外部地址已按合规要求移除>
- url: >-
https://api.allyang.cn/<外部地址已按合规要求移除>
created: 1758200023
usage:
prompt_tokens: 0
completion_tokens: 0
total_tokens: 53400
prompt_tokens_details:
cached_tokens_details: {}
completion_tokens_details: {}
output_tokens: 53400
headers: {}
security: []
components:
schemas: {}
securitySchemes: {}
servers: []
security: []