ReplicateSpeech to textComing soon
ibm-granite/granite-speech-4.1-2b
ibm-granite/granite-speech-4.1-2b is a speech to text tool from Replicate that runs in the background and returns structured JSON. Coming soon: listed with its price, not yet open to runs.
This tool is listed but not yet available to run.
Price pendingPricing
Price pending.
Limits
- Runs
- In the background
- Returns
- json
- Longest queue wait
- 3600s
- Run deadline
- 1800s
- Largest inline input
- 1024 KB
- Largest input file
- 500 MB
- Largest output
- 4768 MB
- Outputs per run
- 16
Input
| Field | Kind | Default | Description |
|---|---|---|---|
seed | number (whole) | — | Random seed. Leave unspecified to randomize the seed. |
stop | list | — | A list of sequences to stop generation at. For example, ["<end>","<stop>"] will stop generation at the first instance of "<end>" or "<stop>". |
audio | URLs or files | — | Completion API Audio input. |
top_k | number (whole) | — | The number of highest probability tokens to consider for generating the output. If > 0, only keep the top k tokens with highest probability (top-k filtering). |
top_p | number | — | A probability threshold for generating the output. If < 1.0, only keep the top tokens with cumulative probability >= top_p (nucleus filtering). Nucleus filtering is described in Holtzman et al. (http://arxiv.org/abs/1904.09751). |
prompt | text | — | Completion API user prompt. |
messages | JSON | — | Chat completion API messages. |
max_tokens | number (whole) | — | max_tokens is deprecated in favor of the max_completion_tokens field. |
min_tokens | number (whole) | 0 | The minimum number of tokens the model should generate as output. |
temperature | number | — | The value used to modulate the next token probabilities. |
chat_template | text | — | A template to format the prompt with. If not specified, the chat template provided by the model will be used. |
system_prompt | text | — | Completion API system prompt. The chat template provides a good default. |
presence_penalty | number | — | Presence penalty |
frequency_penalty | number | — | Frequency penalty |
repetition_penalty | number | — | Repetition penalty |
chat_template_kwargs | JSON | — | Additional arguments to be passed to the chat template. |
add_generation_prompt | true or false | true | Add generation prompt. Passed to the chat template. Defaults to True. |
max_completion_tokens | number (whole) | — | An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens. |
Same request in code
curl https://api.spiral.ai/v1/runs \
-H "Authorization: Bearer $SPIRAL_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"provider": "replicate",
"model": "ibm-granite/granite-speech-4.1-2b",
"input": {}
}'