MarketSupport← Back to app

Gemini

Gemini chat models are called through one simple endpoint: send a messages array plus the model slug and get the reply text back. This family exposes 7 models.

Overview

Send a standard messages array (user / assistant / system roles). Billing is deducted from your credit balance per response; the response includes your remaining balance.

Authentication

Create an API key at /api-keys, then send it as a Bearer token. Requests from the browser while logged in also work via the session cookie.

Authorization: Bearer <YOUR_API_KEY>

OpenAI-compatible Chat Completions

POST
POST https://api.lithovas.com/v1/chat/completions

Use this endpoint for developer integrations: point your OpenAI SDK base_url to https://api.lithovas.com/v1 and send a Lithovas API key.

Python SDK
Python
from openai import OpenAI

client = OpenAI(
    api_key="YOUR_LITHOVAS_API_KEY",
    base_url="https://api.lithovas.com/v1",
)

completion = client.chat.completions.create(
    model="chat/gemini-2.5-pro",
    messages=[
        {"role": "system", "content": "You are a helpful assistant."},
        {"role": "user", "content": "Hello!"},
    ],
)

print(completion.choices[0].message.content)
cURL
cURL
curl -X POST https://api.lithovas.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "chat/gemini-2.5-pro",
    "messages": [
      { "role": "system", "content": "You are a helpful assistant." },
      { "role": "user", "content": "Hello!" }
    ]
  }'

Chat Completions

POST
POST https://api.lithovas.com/api/chat

Body: { "model": "<slug>", "messages": [{ "role": "user", "content": "…" }] }

Response: { "text": "<assistant reply>", "credits": <billed>, "balance": <remaining> }

Models

ModelProvidermodel slug
Gemini 2.5 ProGooglechat/gemini-2.5-pro
Gemini 3 ProGooglechat/gemini-3-pro
Gemini 3.1 ProGooglechat/gemini-3.1-pro
Gemini 2.5 FlashGooglechat/gemini-2.5-flash
Gemini 3 FlashGooglechat/gemini-3-flash
Gemini 3.5 FlashGooglechat/gemini-3-5-flash
Gemini 3.6 FlashGooglechat/gemini-3-6-flash

Gemini 2.5 Pro

POST/v1/chat/completions
cURL
curl -X POST https://api.lithovas.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "chat/gemini-2.5-pro",
    "messages": [{
      "role": "user",
      "content": [
        { "type": "text", "text": "Describe this image." },
        { "type": "image_url", "image_url": { "url": "https://example.com/photo.jpg" } }
      ]
    }]
  }'

Gemini 3 Pro

POST/v1/chat/completions
cURL
curl -X POST https://api.lithovas.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "chat/gemini-3-pro",
    "messages": [{
      "role": "user",
      "content": [
        { "type": "text", "text": "Describe this image." },
        { "type": "image_url", "image_url": { "url": "https://example.com/photo.jpg" } }
      ]
    }]
  }'

Gemini 3.1 Pro

POST/v1/chat/completions
cURL
curl -X POST https://api.lithovas.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "chat/gemini-3.1-pro",
    "messages": [{
      "role": "user",
      "content": [
        { "type": "text", "text": "Describe this image." },
        { "type": "image_url", "image_url": { "url": "https://example.com/photo.jpg" } }
      ]
    }]
  }'

Gemini 2.5 Flash

POST/v1/chat/completions
cURL
curl -X POST https://api.lithovas.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "chat/gemini-2.5-flash",
    "messages": [{
      "role": "user",
      "content": [
        { "type": "text", "text": "Describe this image." },
        { "type": "image_url", "image_url": { "url": "https://example.com/photo.jpg" } }
      ]
    }]
  }'

Gemini 3 Flash

POST/v1/chat/completions
cURL
curl -X POST https://api.lithovas.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "chat/gemini-3-flash",
    "messages": [{
      "role": "user",
      "content": [
        { "type": "text", "text": "Describe this image." },
        { "type": "image_url", "image_url": { "url": "https://example.com/photo.jpg" } }
      ]
    }]
  }'

Gemini 3.5 Flash

POST/v1/chat/completions
cURL
curl -X POST https://api.lithovas.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "chat/gemini-3-5-flash",
    "messages": [{
      "role": "user",
      "content": [
        { "type": "text", "text": "Describe this image." },
        { "type": "image_url", "image_url": { "url": "https://example.com/photo.jpg" } }
      ]
    }]
  }'

Gemini 3.6 Flash

POST/v1/chat/completions
cURL
curl -X POST https://api.lithovas.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "chat/gemini-3-6-flash",
    "messages": [{
      "role": "user",
      "content": [
        { "type": "text", "text": "Describe this image." },
        { "type": "image_url", "image_url": { "url": "https://example.com/photo.jpg" } }
      ]
    }]
  }'