AI inference API

AI models on demand, priced per token

Pick a model by what it can do and what it costs, call it with your PAR Infinity API key, and pay only for the tokens you use.

What teams use it for

Run AI models through one PAR Infinity API key. Compare the available models by capability and price per million tokens, then call the one that fits.

  • Assistants and chat

    Answer customer questions, draft replies and summarise conversations.

  • Extraction and classification

    Pull structured fields out of emails, forms and call transcripts, or sort requests by intent.

  • Search over your own content

    Create embeddings to search a knowledge base or document store.

  • Speech workloads

    Transcribe audio or generate speech with the speech models in the catalogue.

How it works

  1. Choose Pick a model by capability and price
  2. Authenticate Send your API key with each request
  3. Model Runs your prompt and returns the result
  4. Meter Input and output tokens counted
  5. Report Usage and cost visible in the portal

Capabilities

Model catalogue
Every available model with its capabilities, context window and prices, in one list.
Pay per token
Input and output tokens are priced separately for each model, per million tokens.
One account and API key
Use the same PAR Infinity account as your messaging and voice traffic.
Switch models
Change the model per request to balance quality, speed and cost.
Usage reporting
Token usage per model and per API key, next to your other usage.
Compare by capability
Filter the catalogue by what you need, such as vision, tool calling or embeddings.

For developers

What it looks like in code

The example shows the idea: a REST request with your PAR Infinity API key names the model and sends the input. Usage is billed per token.

  • Model chosen per request
  • Usage visible in the portal
  • Use the same PAR Infinity account as your messaging and voice traffic.
Illustrative
request.shcURL
curl -X POST "$AI_ENDPOINT" \
  -H "Authorization: $PAR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "<model id from the catalogue>",
    "input": "Classify this message and extract the order number: Where is my order 48213?",
    "response_format": "json"
  }'
classify.pyPython
import os
import requests

resp = requests.post(
    os.environ["AI_ENDPOINT"],
    headers={"Authorization": os.environ["PAR_API_KEY"]},
    json={
        "model": "<model id from the catalogue>",
        "input": "Classify this message and extract the order number: Where is my order 48213?",
        "response_format": "json",
    },
    timeout=30,
)
resp.raise_for_status()
print(resp.json()["output"])  # {'intent': 'order_status', 'order_id': '48213'}
200 OKResponse
{
  "model": "<model id from the catalogue>",
  "output": {
    "intent": "order_status",
    "order_id": "48213",
    "language": "en"
  },
  "usage": {
    "input_tokens": 31,
    "output_tokens": 19
  }
}

Illustrative example: names and fields show the idea, not the exact API contract. API reference

Integration options

  • REST API with API-key authentication
  • Model chosen per request
  • Usage visible in the portal
  • Related: Voice AI agents and flow builder AI steps

Reporting and management

Token usage per model, per API key and per day, so you can follow cost while you test and as you scale.

About reporting

Security considerations

  • Requests authenticated with your account API key
  • Encrypted transport (HTTPS) for all requests
  • Send each model only the data a task needs

AI inference API questions

Can't find what you need? Ask our team.

How is AI inference priced?

Per token. Each model has its own price per million input tokens and per million output tokens, shown in the model catalogue. Some speech models are priced per minute instead, and the catalogue says so.

Which models are available?

The model catalogue lists the models available now, with capabilities and prices. The list changes as models are added or retired.

How do I get access?

Ask our team to enable AI inference on your account, then create an API key in the portal.

Can I get a price for high volumes?

Yes. Tell us your expected monthly token volume and the models you plan to use.

Tell us what you need to call, automate or send

Share your channels, countries and volumes. We will confirm what is available and how to integrate it.