PixMind Docs
API ReferenceLanguage ModelsGemini 3 8 flash

Gemini 3.8 Flash Chat Completions

Call Gemini 3.8 Flash through PixMind for long-horizon coding, agent workflows, multimodal analysis, tools, and streamed text output.

Gemini 3.8 Flash is the latest Flash-tier route for software engineering, autonomous agents, and complex multi-step work. The PixMind route supports multimodal input through an OpenAI-compatible chat-completions request.

Gemini 3.8 Flash through PixMind's OpenAI-compatible chat completions endpoint.

Provider

Google

Model ID

gemini-3.8-flash

Endpoint

POST /api-platform/v1/chat/completions

Model notes

  • Keep the API key on your server and use streaming when the client needs incremental output.
  • Gemini accepts up to 10 images (10MB each) and one video (20MB) per request. Media URLs must use HTTPS.

Request parameters

ParameterTypeRequiredDescription
modelstringYes

Stable PixMind model ID. Use `gemini-3.8-flash`.

Allowed values: gemini-3.8-flash

messagesarrayYes

OpenAI-compatible chat messages. Gemini user content may be a string or an array of text, image_url, and video_url blocks.

max_tokensintegerNo

Maximum number of completion tokens to generate.

Default: 4096

temperaturenumberNo

Sampling temperature for the response.

Allowed values: 0, 0.5, 1, 2

Default: 1

streambooleanNo

Return tokens incrementally when enabled.

Allowed values: true, false

Default: false

Request example

cURL
curl https://aihub-admin.aimix.pro/api-platform/v1/chat/completions \
  -H "Authorization: Bearer $PIXMIND_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "gemini-3.8-flash",
  "messages": [
    {
      "role": "user",
      "content": [
        {
          "type": "text",
          "text": "Compare the product image with the motion in the video."
        },
        {
          "type": "image_url",
          "image_url": {
            "url": "https://example.com/product.png"
          }
        },
        {
          "type": "video_url",
          "video_url": {
            "url": "https://example.com/motion.mp4"
          }
        }
      ]
    }
  ],
  "stream": false
}'
JavaScript
const response = await fetch("https://aihub-admin.aimix.pro/api-platform/v1/chat/completions", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${process.env.PIXMIND_API_KEY}`,
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
  "model": "gemini-3.8-flash",
  "messages": [
    {
      "role": "user",
      "content": [
        {
          "type": "text",
          "text": "Compare the product image with the motion in the video."
        },
        {
          "type": "image_url",
          "image_url": {
            "url": "https://example.com/product.png"
          }
        },
        {
          "type": "video_url",
          "video_url": {
            "url": "https://example.com/motion.mp4"
          }
        }
      ]
    }
  ],
  "stream": false
})
});

const task = await response.json();

Accepted task response

Generation is asynchronous. Save taskId and poll GET /api-platform/v1/tasks/{taskId} until status is ready or failed.

200 OK
{
  "code": 1000,
  "data": {
    "id": "img_44160",
    "taskId": 44160,
    "type": "image",
    "model": "gemini-3.8-flash",
    "status": "processing"
  }
}

API pricing

ConfigurationPrice
Input tokens955.5 credits / 1M tokens
Output tokens4914 credits / 1M tokens
Cache read109.2 credits / 1M tokens

API pricing uses the apiPlatform role and is separate from PixMind Studio credits. The accepted task response is the final pricing snapshot.