Models › gemini-3.1-pro-preview-customtools

gemini-3.1-pro-preview-customtools API

gemini-3.1-pro-preview-customtools is a language model from Google, available on OneFast API behind the same API key as every other model in the catalog.

Pricing

UsagePrice (USD)
Input$1.20 / 1M tokens
Input — cache hit$0.12 / 1M tokens
Output$7.20 / 1M tokens

Billed per 1M tokens, pay as you go in USD. Failed requests are not billed. The price shown is the public list price; after signing in, the console shows the price for your own account.

Model details

Model IDgemini-3.1-pro-preview-customtools
ProviderGoogle
TypeChat

Endpoints

  • POST /v1/chat/completions — OpenAI-compatible chat (docs)
  • POST /v1beta/models/{model}:generateContent — Gemini native (docs)

Quickstart

Create an API key in the console, then call the API:

curl https://api.onefast.ai/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemini-3.1-pro-preview-customtools",
    "messages": [{"role": "user", "content": "Hello"}]
  }'

More examples: OpenAI-compatible chat docs · Quickstart.