OpenAI 호환 이미지 편집 모델을 사용하여 이미지를 편집하거나 인페인트합니다.
このエンドポイントは、画像の編集、修復、ソース画像の変換に使用します。Documentation Index
Fetch the complete documentation index at: https://docs.apigo.ai/llms.txt
Use this file to discover all available pages before exploring further.
Authorization: Bearer {API_KEY}で認証するmultipart/form-data を使用しますimage と prompt ですが、mask は編集可能な領域を狭めます。gpt-image-1 と dall-e-2 は、ファイル サイズ制限、マルチイメージ サポート、および input_fidelity において大きく異なります。url 値が含まれている場合は、それらをすぐにミラーリングします。 b64_json が含まれている場合は、メインスレッドで大きな画像をデコードしすぎないようにします。Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Input image or images to edit.
Text instruction describing the desired edit.
"在图片中添加一朵红色的玫瑰花"
Only supported by gpt-image-1.
transparent, opaque, auto Only supported by gpt-image-1.
high, low Optional PNG mask file. Usually must match the image dimensions.
Image editing model.
gpt-image-1, dall-e-2 Number of edited images to generate.
1 <= x <= 10Compression level for gpt-image-1 jpeg/webp output.
0 <= x <= 100Only supported by gpt-image-1.
png, jpeg, webp Number of partial images for streaming previews.
0 <= x <= 3Supported values vary by model.
auto, high, medium, low, standard Only applies to dall-e-2.
url, b64_json Allowed values depend on the selected model.
1024x1024, 1536x1024, 1024x1536, auto, 256x256, 512x512 Streams edited image output when supported.
Unique identifier for the end user.
Successful image edit response