Image

Vtrix provides various image generation models including Stable Diffusion, FLUX, Google Gemini, and more. Each model has its own dedicated API endpoint and parameters.

circle-exclamation

How to Use Image Generation Models

1

Visit the Models page

Select the "Image" type.

2

Browse and select a model

Choose an image generation model that fits your needs.

3

View the API tab

Open the model details and view the complete curl example and parameter description in the "API" tab.

4

Copy and customize the example

Copy the example code and replace with your API Key and prompt.

Example: Using Google Gemini 3 Pro Image

Here is an example of generating an image using Google Gemini 3 Pro Image:

curl
curl --location 'https://cloud.vtrix.ai/model/v1/generation' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data '{
  "model": "google_gemini3_pro_image",
  "input": [
    {
      "params": {
        "prompt": "example_prompt",
        "image_urls": [
          "https://example.com/image.jpg"
        ],
        "aspect_ratio": "1:1",
        "resolution": "1K"
      }
    }
  ]
}'
circle-info

Note: Different image generation models have different parameters. For example, Google Gemini 3 Pro Image above uses aspect_ratio and resolution, while other models may use width/height. Please check the specific model API documentation for supported parameters.

circle-check

Last updated