API for text, vision and embeddings
Ship AI features with one API call
Relay gives your product a metered endpoint for text, vision and embeddings. Pay per 1,000 requests. No seat fees.
10,000 free requests a month. No card needed.
# one call, metered per request curl https://api.relay.example/v1/generate \ -H "Authorization: Bearer $RELAY_KEY" \ -d '{"model":"fast", "input":"Summarize this ticket in one line."}'
{
"output": "Customer cannot reset password; link expires early.",
"usage": { "input_tokens": 214, "output_tokens": 11 },
"request_id": "req_8f2a91"
}Text, vision and embeddings behind one key
Each capability is one endpoint with the same auth, the same error format and the same usage line on your invoice.
Generate
Send a prompt, get text back. Pick fast, balanced or deep per request.
POST /v1/generateDescribe
Send an image URL and a question. Get a caption, a label set or a short answer.
POST /v1/describeEmbed
Turn up to 256 strings into vectors in a single call, ready for your own index.
POST /v1/embedUsage
Read request counts and spend by key, by day, from the same API you call.
GET /v1/usageQuickstart
Three lines to production
Install the package, set your key, call generate. The response shape is the same in every language.
import relay client = relay.Client(api_key="YOUR_KEY") print(client.generate("Hello", model="fast").output)
Pay for requests, not seats
Three plans. Prices are demo numbers. Change them in one component and every page updates.
Hobby
For side projects and testing.
- 10,000 requests a month
- Fast model class
- 1 API key
- Community support
Growth
For products with real traffic.
- Everything in Hobby
- All model classes
- Unlimited keys
- Email support, 1 business day
Scale
For volume above 1M requests a month.
- Volume tiers from $0.30 per 1k
- Invoice billing
- Dedicated support channel
Questions before you sign up
Is there a free tier?
Yes. The demo plan includes 10,000 requests a month with no card on file. Edit these numbers in the Pricing component.
Do you store prompts?
Placeholder answer. State your real retention policy here, in days, and link the page that describes it.
What happens when I pass the free limit?
Requests keep working and bill per 1,000 at the rate shown on the pricing page. Swap this for your own overage rule.
Which languages have an SDK?
Placeholder answer. List only the SDKs you ship today.
Want the full site?
Relay Pro adds pricing with a usage calculator, a changelog, docs, a blog and a design system page.