AIHubMix Unified API
Create an AIHubMix image generation
Generates images with the AIHubMix native media protocol. Requests are synchronous by default and become asynchronous when async is true.
POST
Create an AIHubMix image generation
인증
Gateway-issued API key, formatted as sk-gateway-xxxxxxxx.
Used by OpenAI-shaped endpoints (/v1/chat/completions, etc.).
본문
application/json
Image model ID.
Minimum string length:
1필수 범위:
x >= 1Pattern:
^[1-9][0-9]*x[1-9][0-9]*$Single input image as a URL, data URI, Base64 value, or URL object.
Optional edit mask.
사용 가능한 옵션:
png, jpeg, webp 사용 가능한 옵션:
url, b64_json Maximum string length:
512Minimum array length:
1사용 가능한 옵션:
completed, failed, cancelled 응답
Image generation task
Platform task ID.
사용 가능한 옵션:
image, video Current task state. Completed, failed, and cancelled are terminal states.
사용 가능한 옵션:
pending, in_progress, completed, failed, cancelled Unix timestamp in seconds.
Artifact expiry time in Unix seconds; may be null before completion.
Create an AIHubMix image generation