SilentAPI Logo SilentAPI

OpenAI Style

Use endpoints compatible with the OpenAI API

SilentAPI provides endpoints compatible with the OpenAI API. If your codebase uses the OpenAI SDK, change the base URL and API key. Request and response shapes follow the OpenAI API.

Endpoints

MethodPathDescription
POST/v1/chat/completionsChat completions
POST/v1/completionsLegacy text completions
POST/v1/responsesResponses API
POST/v1/embeddingsCreate embeddings
POST/v1/audio/speechText to speech
POST/v1/audio/transcriptionsSpeech to text
POST/v1/images/generationsImage generation
POST/v1/images/editsImage edits
GET/v1/modelsList available models
GET/v1/models/{id}Get one model

Chat Completions

Send an OpenAI Chat Completions API request with the model and messages fields:

curl https://api.silentapi.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "gpt-6.1-terra",
    "messages": [{"role":"user","content":"Explain how APIs work."}]
  }'

Response:

{
  "id": "chatcmpl_1719584000",
  "object": "chat.completion",
  "created": 1719584000,
  "model": "gpt-6.1-terra",
  "choices": [{
    "index": 0,
    "message": {
      "role": "assistant",
      "content": "An API is like a waiter in a restaurant..."
    },
    "finish_reason": "stop"
  }],
  "usage": {
    "prompt_tokens": 8,
    "completion_tokens": 156,
    "total_tokens": 164
  },
  "silentapi": {
    "cost": 0.000117,
    "fallback": null
  }
}

Using the OpenAI SDK

Python

from openai import OpenAI

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

response = client.chat.completions.create(
    model="gpt-6.1-terra",
    messages=[
        {"role": "system", "content": "You are a helpful assistant."},
        {"role": "user", "content": "Hello!"}
    ]
)

Send conversation messages in messages. Send system instructions as a message with role: "system". Use prompt only with the Completions API.

Web Search

GPT 6.2 Astra, GPT 6.2 Sol, GPT 6.1 Terra, and GPT 6 Luna support web search. Set useWebSearch: true or send web_search_options: {}, and the same options also work with streaming.

{
  "model": "gpt-6.1-terra",
  "messages": [{"role":"user","content":"Find the latest release notes for Python."}],
  "useWebSearch": true
}

Search adds the model's listed search price to token charges. SilentAPI bills the reported number of search calls, including zero. When the search integration does not report a count, an enabled search request counts as one call. Citations do not determine the charge. In chat, enable Web search in the model options.

Embeddings

Send text in the input field. Use gemini-embedding-2 or text-embedding-3-small.

curl https://api.silentapi.com/v1/embeddings \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{"model":"gemini-embedding-2","input":"SilentAPI API documentation"}'

encoding_format: "base64" works on every model. dimensions is sent to models that support it. See Embeddings in Parameter Handling.

Text to Speech

Send text in the input field. The response is audio.

curl https://api.silentapi.com/v1/audio/speech \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{"model":"gemini-3.8-flash-tts","input":"Your request is ready.","voice":"Kore","response_format":"wav"}' \
  -o speech.wav

Speech requests accept mp3, wav, opus, aac, flac, and pcm, including common aliases such as audio/wav, audio/mpeg and .MP3. If the requested format is unavailable, SilentAPI returns a supported format. X-SilentAPI-Format shows the actual format, and X-SilentAPI-Notice explains a fallback. The audio bytes and Content-Type always describe the format returned. See Speech in Parameter Handling.

Speech to Text

Send an audio file in the multipart file field. Use gpt-transcribe.

curl https://api.silentapi.com/v1/audio/transcriptions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "file=@recording.mp3" \
  -F "model=gpt-transcribe"

response_format can be json, text, verbose_json, srt, or vtt on every model. See Transcription in Parameter Handling.

Current Models

Use gpt-6.2-sol for balanced work. These GPT models are available:

ModelReasoning levels
gpt-6.2-sollow, medium, high, xhigh, max
gpt-6.2-astralow, medium, high, xhigh, max
gpt-6.1-terranone, low, medium, high, xhigh, max
gpt-6-lunanone, low, medium, high, xhigh, max

Read [ Services ] or the model list for the current models and levels.

Reasoning controls differ by model. The model list exposes supported levels in silentapi.reasoning and the documented default in silentapi.reasoning_default. API requests without a reasoning level use that default. Chat starts with Kimi K3.1 Pro and High reasoning; your saved preference takes priority. Kimi K3, Kimi K3.1 Pro, GLM 5.3 and GLM 5.3 Flash support low, high and max, with max as their API default. Toggle-only models use On and Off. Models with fixed reasoning do not receive an effort control.

gpt-6.2-sol supports function calling. Send function definitions in tools, and your application runs the functions that the model requests.

Supported Parameters

ParameterTypeDescription
modelstringThe model ID (see Services)
messagesarrayMulti-turn conversation messages
temperaturenumberSampling temperature (0 to 2)
max_tokensintegerMaximum output tokens
max_completion_tokensintegerMaximum completion tokens (GPT 6 models)
top_pnumberNucleus sampling parameter
reasoning_effortstringReasoning level: none, minimal, low, medium, high, xhigh, or max. See Reasoning.
response_formatobjectJSON Schema or JSON object mode
toolsarrayFunction calling tool definitions
streambooleanEnable SSE streaming (see Streaming)
webhook_urlstringReceive the response payload as a POST callback

Parameter Handling

Some values are valid in the OpenAI API but not on every model. SilentAPI changes them so the request does not fail:

ParameterHandling
temperatureLimited to 0 to 2
top_p, min_pLimited to 0 to 1
frequency_penalty, presence_penaltyLimited to -2 to 2
repetition_penaltyLimited to 0 to 2
max_tokens, max_completion_tokensA decimal value becomes the whole number below it. A value below 1 is ignored.
Numbers sent as textChanged to numbers, for example "0.5" becomes 0.5. A value that is not a number is ignored.
reasoning_effort, reasoning.effortSupported values stay unchanged. Unsupported values move up to the next supported level, or stop at the highest available level. Unsupported none uses the lowest level. Missing or unrecognised values use the documented model default. Extra High, extra-high and x_high mean xhigh. See Reasoning.

For media endpoints, see Parameter Handling in Media and OCR.

Reasoning

Chat models accept a reasoning level. The field depends on the endpoint:

EndpointField
Chat Completions APIreasoning_effort
Responses APIreasoning.effort
Native model routes, such as /v1/google/gemini-4-neonreasoning_effort, or the alias thinkingLevel
Anthropic Messages APIthinking. See Anthropic Style.
Gemini generateContentgenerationConfig.thinkingConfig. See Gemini Style.
curl https://api.silentapi.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "gpt-6.2-sol",
    "messages": [{"role":"user","content":"Plan a three-step database migration."}],
    "reasoning_effort": "high"
  }'
ValueLabel
noneNone. Off on models that support only on or off.
minimalMinimal
lowLow
mediumMedium
highHigh
xhighExtra High
maxMax
onOn. Used by models that support only on or off.

Each model supports its own set of levels. Read them in silentapi.reasoning in the model list. SilentAPI changes the request to fit the model:

Model levelsResult
A list of levels, for example ["low", "medium", "high"]SilentAPI uses the requested level when the model supports it. Otherwise it uses the closest supported level. When two levels are equally close, it uses the higher level.
["none", "on"]The model accepts only on or off. none turns reasoning off. Any other level turns it on.
[]The model always reasons. SilentAPI ignores the requested level.
Model levelsRequestLevel used
["low", "medium", "high"]xhighhigh
["low", "medium", "high"]nonelow
["none", "on"]highOn
[]lowThe model default

SilentAPI also accepts these aliases:

Request valueSame as
on, enabled, trueon. On a model with a list of levels, SilentAPI uses medium or the closest supported level.
off, disabled, falsenone

SilentAPI ignores a value that is not in these tables. The model then uses its default.

Chat Completions also accepts a reasoning object. SilentAPI reads it when reasoning_effort is absent:

FieldHandling
reasoning.effortSame as reasoning_effort
reasoning.max_tokensA token budget. SilentAPI changes it to a level with the budget table, then to the closest level the model supports.
reasoning.enabledtrue is the same as on. false is the same as none.

A model that cannot turn reasoning off gets its lowest level for none. A model that always reasons with a fixed level gets no reasoning fields. Other fields in reasoning, such as exclude, are kept.

Image Generation

curl https://api.silentapi.com/v1/images/generations \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "gpt-image-2.6-flare",
    "prompt": "A serene mountain landscape at sunset",
    "n": 1,
    "size": "1024x1024"
  }'

SilentAPI changes size, aspect_ratio, n, response_format, and output_format to fit each image model. See Image Generation in Parameter Handling.

Video

Video generation runs as a job. Create the job, poll its status until it completes, and then download the MP4 file.

MethodPathDescription
POST/v1/videosCreate a video job
GET/v1/videos/{id}Get the job status
GET/v1/videos/{id}/contentDownload the finished video (MP4)
curl https://api.silentapi.com/v1/videos \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "grok-imagine-video-1.5-lite",
    "prompt": "A paper boat drifting down a rainy street",
    "duration": 6,
    "resolution": "720p",
    "aspect_ratio": "16:9"
  }'

The API returns 202 Accepted:

{
  "id": "video_abc123",
  "status": "processing",
  "status_url": "/v1/videos/video_abc123"
}

Poll the status until the job is done:

curl https://api.silentapi.com/v1/videos/video_abc123 \
  -H "Authorization: Bearer YOUR_API_KEY"

Download the video:

curl https://api.silentapi.com/v1/videos/video_abc123/content \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -o video.mp4

Model Discovery

GET /public/models lists every model in the OpenAI list format. It needs no API key. Use it in tools and apps that read a model list. Browser apps can call it from any origin.

curl https://api.silentapi.com/public/models

GET /v1/models returns the same list but needs an API key, and GET /v1/models/{id} returns one item.

curl https://api.silentapi.com/v1/models \
  -H "Authorization: Bearer YOUR_API_KEY"

The response is {"object": "list", "data": [...]}. Example item. Prices are examples:

{
  "id": "gemini-4-neon",
  "object": "model",
  "created": 1790000000,
  "owned_by": "silentapi",
  "name": "Gemini 4 Neon",
  "display_name": "Gemini 4 Neon",
  "context_length": 1048576,
  "max_output_tokens": 65536,
  "input_modalities": ["text", "image", "video", "file", "audio"],
  "output_modalities": ["text"],
  "pricing": {
    "prompt": "0.00000375",
    "completion": "0.0000188",
    "input_cache_read": "1.88e-7"
  },
  "silentapi": {
    "model_name": "Gemini 4 Neon",
    "vendor": "Google AI",
    "family": "Gemini 4",
    "category": "multimodal",
    "resilient": true,
    "privacy": "e2e",
    "privacy_label": "End-to-end ZDR",
    "reasoning": ["low", "medium", "high", "xhigh"]
  }
}
FieldTypeMeaning
idstringModel ID. Send it in the model field.
objectstringAlways model
createdintegerUnix time in seconds
owned_bystringAlways silentapi
namestringModel name
display_namestringModel name. Same as name.
context_lengthinteger or nullMaximum context in tokens
max_output_tokensinteger or nullMaximum output tokens
input_modalitiesarrayInput types, for example text or image
output_modalitiesarrayOutput types
pricingobjectToken prices. Absent when the model has no token prices.
silentapiobjectSilentAPI model details

pricing has these fields. Each price is in USD per token, as a string. A price can use exponent notation, for example 9.38e-7.

FieldTypeMeaning
promptstringPrice of one input token
completionstringPrice of one output token
input_cache_readstringPrice of one cached input token. Only when it applies.
input_cache_writestringPrice of one cache write token. Only when it applies.

silentapi has these fields:

FieldTypeMeaning
model_namestringModel name
vendorstringModel vendor
familystringModel family
categorystringService type, for example multimodal, text, image, or embedding
privacystringe2e or silentapi
privacy_labelstringEnd-to-end ZDR or SilentAPI protected. See Privacy Labels.
resilientbooleantrue when fallback models exist
reasoningarraySupported reasoning levels. Chat models only. See Reasoning.

Model Catalog

GET /public/catalog returns one machine-readable entry for every public model, without an API key. Each entry lists its capabilities (input and output types, streaming, tools, and reasoning levels), the context and output limits, prices in USD per token and in credits, the privacy label, and a lifecycle block with status, deprecated_at, retires_at, and replacement. A model that is not deprecated has the status active and null dates.

curl https://api.silentapi.com/public/catalog

Cross-Style Usage

Use any supported text or multimodal model with the OpenAI Chat Completions API. For example, gemini-4-neon returns the OpenAI response format.

Use the separate media endpoints for embeddings, images, speech, and video.