MiniMax: ASR 1.0 (Audio to Text) API Reference

Quick Start

Welcome to Infron AI — your unified gateway to cutting-edge language, reasoning, and multimodal models. This guide will walk you through setting up your environment, making basic API calls, and exploring advanced features.

Setup your API Key

To begin using Infron AI, you first need to create an account and generate your API Key. Once you have your API key, set it as an environment variable in your runtime environment. This allows your applications to securely access Infron's API.

export INFRON_KEY="YOUR_API_KEY"

You can verify the variable is set correctly by running:

echo $INFRON_KEY

Submit a demo request

You can interact with Infron AI through two primary methods: direct API calls or using the OpenAI SDK.

Using the Infron API directly

import requests
import json

response = requests.post(
    url="https://llm.onerouter.pro/v1/chat/completions",
    headers={
        "Authorization": f"Bearer {INFRON_KEY}",
        "Content-Type": "application/json",
    },
    data=json.dumps({
        "model": "minimax/asr-1.0/audio-to-text",
        "messages": [
            {
                "role": "user",
                "content": "What is the meaning of life?"
            }
        ]
    })
)

print(response.json())

Using the OpenAI SDK

from openai import OpenAI

client = OpenAI(
    base_url="https://llm.onerouter.pro/v1",
    api_key=f"{INFRON_KEY}",
)

completion = client.chat.completions.create(
    model="minimax/asr-1.0/audio-to-text",
    messages=[
        {
            "role": "user",
            "content": "What is the meaning of life?"
        }
    ]
)

print(completion.choices[0].message.content)

This method handles authentication and request formatting automatically, providing a smoother developer experience.

Advanced Features

Advanced model features are provider-aware. Use the model detail page to confirm which providers support structured outputs, multimodal input, reasoning tokens, and compatible API modes for minimax/asr-1.0/audio-to-text.