Text-to-image APIs come in two styles depending on the model: the OpenAI Images API style (Doubao Seedream) and the Gemini generateContent style; image editing uploads the original image via multipart/form-data.
Bearer API KeyUse the Authorization: Bearer sk_live_... header; x-api-key is also supported.
🧩
Confirm the model call name firstFirst filter models that support this endpoint format on the Models page, then open a model detail page to copy its call name. Your account's final availability also depends on organization permissions.
Request structure
The section below confirms the method, URL and authentication scheme. It is an HTTP structure snippet, not a standalone runnable example.
HTTP
POST https://www.silvamux.com/api/v3/images/generations
Authorization: Bearer $SILVAMUX_API_KEY
Content-Type: application/json
Gemini generateContent style, for Gemini image models.
⚠️
There are currently no publicly discoverable Gemini image models in the model list or the Model Plaza. The content below only illustrates the request structure and cannot be executed directly; <MODEL_CALL_NAME> must be replaced with a real call name published later on the Model Plaza — do not guess model names.
POST /api/v1beta/models/{model}:generateContent
Authentication:Authorization: Bearer <API_KEY> or x-api-key: <API_KEY>
No publicly discoverable models yetThe current model list and Models page provide no public call names for this endpoint; this page is for OpenAPI contract reference only and is not a standalone runnable example. Do not guess model names — once matching models are published, use the call name from their detail page.
🔑
Bearer API KeyUse the Authorization: Bearer sk_live_... header; x-api-key is also supported.
🧩
Confirm the model call name firstFirst filter models that support this endpoint format on the Models page, then open a model detail page to copy its call name. Your account's final availability also depends on organization permissions.
Request structure
The section below confirms the method, URL and authentication scheme. It is an HTTP structure snippet, not a standalone runnable example.
HTTP
POST https://www.silvamux.com/api/v3/images/edits
Authorization: Bearer $SILVAMUX_API_KEY
Content-Type: multipart/form-data
Image edit v1 and v3 share the #/components/requestBodies/ImageEdit request body in the OpenAPI and keep referencing #/components/schemas/ImageEditRequest for field definitions. Reading the contract or generating an SDK requires recursive resolution of local $refs; fields are not inlined directly under the endpoint node, which does not mean the request body is missing.
The resolved request body is a required multipart/form-data where model, prompt, and image are required, and image is one or more binary files.
There are currently no publicly discoverable image editing models in the model list or the Model Plaza. The content below is a request structure example and cannot be executed directly; <MODEL_CALL_NAME> must be replaced with a real call name published later on the Model Plaza — do not guess model names.
curl https://www.silvamux.com/api/v3/images/edits \
-H "Authorization: Bearer $SILVAMUX_API_KEY" \
-F "model=<MODEL_CALL_NAME>" \
-F "image=@photo.png" \
-F "prompt=Add some decorative text to the image" \
-F "size=1024x1024"
Fields such as background and partial_images are model pass-through fields and currently not part of the unified OpenAPI contract. Whether they are supported follows the details of future public models.
Sample models usable today: doubao-seedream-5-0-260128 (Seedream). There are no publicly discoverable call names for Gemini image models or image editing models yet; usable call names must come from the Model Plaza or the model list API.
Text-to-image and image-to-image are both billed per generated image; check current unit prices on the corresponding model detail page in the Model Plaza.