EVA Gateway Parameters
This page describes the APIs and parameters for each type of model available through EVA Gateway. If you are getting started, see the EVA Gateway Integration Guide first.
General Conventions
- See the model details in the Model Hub for model IDs, supported parameters, value ranges, and capabilities. Use the EVA model IDs shown there in your requests.
- The three capabilities use different path prefixes:
/llm/v1for LLM, and/v1for ASR and TTS. - All requests require authentication with
Authorization: Bearer <API_KEY>. - EVA Gateway automatically generates a Trace ID for every request and returns it in the
autoark-trace-idresponse header.
LLM
LLM request bodies, response bodies, and errors follow the standard OpenAI format for a consistent interface across models.
Supported parameters, value ranges, and capabilities vary by LLM model. See the relevant model details in the Model Hub.
Supported Endpoints and Parameters
POST /llm/v1/chat/completions: Chat CompletionsPOST /llm/v1/responses: Responses
ASR
The speech recognition endpoint is POST /v1/audio/transcriptions. Requests use multipart/form-data.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
file | file | Yes | — | Audio file. |
model | string | Yes | — | ASR model ID. |
audio_format | string | No | Inferred from the filename extension | If omitted, inferred as wav for filenames ending in .wav, and pcm otherwise. Supported formats vary by model; see the relevant model details in the Model Hub. |
sample_rate | int | Yes | — | Sample rate of the input audio in Hz. Must be a positive integer. |
channels | int | No | 1 | Number of audio channels. |
hotwords | string | No | — | Comma-separated hotwords, such as AutoArk,EVA. Support varies by model; see the relevant model details in the Model Hub. Models that do not support this parameter silently ignore it. |
stream | bool | No | false | Set to true to receive an SSE stream. See Streaming Responses below. |
provider_params | string | No | — | A JSON string for model-specific native parameters not covered above. If the same parameter is also set through a field above, the value in provider_params takes precedence, except for model. |
When using the OpenAI SDK, pass
audio_format,sample_rate,channels,hotwords, andprovider_paramsthroughextra_bodyin Python or additional fields in TypeScript.
Response
{
"text": "Recognized text",
"usage": {
"duration": 8767, // Unit: ms
},
"credit": 123, // Credits consumed by this request
}
Model-Specific Parameters
Supported audio formats, sample rates, hotwords, and other parameters vary by ASR model. See the relevant model details in the Model Hub.
Streaming Responses
When stream=true, the endpoint returns an SSE stream (text/event-stream):
data: {"type":"transcript.text.delta","delta":"..."} (zero or more events)
data: {"type":"transcript.text.done","text":"Full transcript","usage":{"duration":8767},"credit":123}
data: [DONE]
- The contents of
deltavary by model. Some models return the full transcript so far in eachdelta; others return only newly recognized text. See the relevant model details in the Model Hub. - For all models,
textintranscript.text.donecontains the complete result and should be treated as authoritative. Full-transcriptdeltavalues overlap and must not be concatenated directly.
TTS
The text-to-speech endpoint is POST /v1/audio/speech. Requests use application/json.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
model | string | Yes | — | TTS model ID. |
input | string | Yes | — | Text to synthesize. Length limits vary by model; see the relevant model details in the Model Hub. |
voice | string | No | Model-dependent | Voice ID. See the relevant model details in the Model Hub for available voices. If omitted, the default voice is used. |
response_format | string | No | pcm | Output audio format. Available formats vary by model; see the relevant model details in the Model Hub. |
speed | double | No | Model-dependent | Speech rate. Accepted ranges vary by model. |
volume | double | No | Model-dependent | Volume. Accepted ranges vary by model. |
sample_rate | int | No | Model-dependent | Sample rate in Hz. |
pitch_rate | double | No | Model-dependent | Pitch adjustment. Not supported by all models. |
stream_format | string | No | audio | audio returns raw audio bytes; sse returns an SSE event stream. See Streaming Responses below. |
provider_params | string | No | — | A JSON string for model-specific native parameters not covered above. If the same parameter is also set through a field above, the value in provider_params takes precedence, except for model. Preserve the nested structure of any nested native parameters. |
Gateway extensions:
volume,sample_rate,pitch_rate, andprovider_paramsare Gateway extensions, not native fields of OpenAI's/v1/audio/speechAPI. When using the OpenAI SDK, pass them throughextra_bodyin Python or additional fields in TypeScript.
Model-Specific Parameters
Supported voices, output formats, sample rates, and ranges for speed, volume, and pitch vary by TTS model. See the relevant model details in the Model Hub.
Streaming Responses
When stream_format=sse, the endpoint returns an SSE stream (text/event-stream) with these events:
data: {"type":"speech.audio.delta","audio":"<BASE64_AUDIO>"}
data: {"type":"speech.audio.done"}
The default stream_format is audio, which returns raw audio bytes directly.