Quickstart
Send your first request through AnyInt Gateway in a few minutes.
AnyInt Gateway gives your application one API key across OpenAI-compatible, Anthropic, Gemini, and asynchronous media APIs. Each protocol keeps its canonical path under the same gateway origin.
1. Configure Your API Key
Create an AnyInt API key in Console and store it in a server-side environment variable.
export ANYINT_API_KEY="your_api_key"Never expose this key in browser or mobile client code.
2. Send a Chat Request
Use the canonical OpenAI-compatible endpoint without changing your existing request shape. Choose a model ID from the published model catalog instead of copying an example model name into production.
curl "https://api.anyint.ai/openai/v1/chat/completions" \
--header "Authorization: Bearer $ANYINT_API_KEY" \
--header "Content-Type: application/json" \
--data '{
"model": "YOUR_MODEL_ID",
"messages": [{ "role": "user", "content": "Hello from AnyInt" }]
}'3. Read the Response
A successful response uses the familiar provider protocol shape. AnyInt adds routing, billing, and trace handling behind the gateway boundary.
{
"id": "chatcmpl_example",
"object": "chat.completion",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hello! How can I help?"
},
"finish_reason": "stop"
}
]
}Next Steps
- Review authentication and API key handling.
- Open Chat Completions for language-specific examples.
- Use Async Media for image, video, and music jobs.
- Browse the API Reference for the complete deployed contract.