AnyInt Docs
Get Started

Core Concepts

Before you integrate AnyInt, it helps to think about the platform in terms of a few core ideas.

Before you integrate AnyInt, it helps to think about the platform in terms of a few core ideas.

Concept map

ConceptWhat it meansWhere to verify
API familyA route family with its own request body and auth conventionsAPI Reference
Model IDThe exact string sent in the model fieldModels API
API keyCredential used to authenticate gateway requestsAPI Keys
Project or team keyA key scoped for a team, environment, or workloadTeam Keys
Task IDIdentifier returned by async media or music workflowsMedia & Music
CallbackA customer-owned URL that receives async task events when supportedWebhooks and Notifications
FallbackA secondary model or route path used under an explicit policyModel Fallbacks

1. One gateway, multiple model families

AnyInt is one platform, but it exposes multiple route families:

  • OpenAI-compatible
  • Anthropic-compatible
  • Gemini-compatible
  • media generation
  • AI Music

That means "one platform" does not mean "one request shape". It means one operational layer across multiple AI surfaces.

FamilyTypical use
OpenAI-compatibleFast first integration for chat, assistants, and many SDKs
Anthropic-compatibleClaude-style messages and content blocks
Gemini-compatibleGemini-native contents[].parts[], streaming, and function flows
Media generationImage and video generation routes
AI MusicSongs, covers, lyrics, stems, and music video workflows

2. Easier access is part of the product

AnyInt is not only a relay. One of its core purposes is reducing the effort required to use advanced AI models.

That includes:

  • fewer provider-specific integrations
  • fewer billing surfaces
  • one place to manage keys and access
  • one docs set for multiple workflows

3. Model choice is a product problem

Many users know what task they want to solve, but they do not know which model is the best fit. This is why model selection should not be treated as a purely manual decision.

In many real cases:

  • multiple models can achieve the same acceptable result
  • the highest-priced model is not always necessary
  • the biggest challenge is matching task requirements to the right model and price point

4. Smart Routing (Coming Soon) is about better defaults

Smart Routing (Coming Soon) should be understood as a model-selection layer, not just a transport feature.

Its value is:

  • choosing models more appropriately
  • avoiding unnecessary premium-model usage
  • improving the balance between quality, latency, and cost

5. Model IDs are the source of truth

Do not guess model IDs. Fetch them from GET /openai/v1/models or use the list available to your account. Availability can differ by account, billing mode, plan, or purchase configuration.

6. API keys connect access and billing

API keys are the main authentication mechanism for platform access. Depending on the route family you call, the header format may differ:

  • Authorization: Bearer <key>
  • x-api-key: <key>

Keys also connect to billing mode, because requests may consume prepaid balance, subscription entitlement, or team-managed access policy.

7. Async tasks are normal for media workflows

Not every route returns a final artifact immediately. Media and AI Music workflows commonly follow this pattern:

  1. create a task
  2. receive a task ID
  3. poll a query endpoint or wait for a webhook
  4. download the generated artifact

Common mistakes

MistakeCorrect model
Assuming one gateway means one JSON schemaMatch the body to the API family
Copying a model name from marketing materialUse the exact data[].id returned by the Models API
Treating task creation as a finished assetPoll or handle callbacks until success
Reusing one key everywhereSeparate keys by environment, project, or team
Treating fallback as automaticDefine when fallback is allowed and log it

The mental model to keep

Think of AnyInt as:

  • an easier way to access advanced AI models
  • a platform for better model selection
  • a gateway for multiple API families
  • a control surface for billing, keys, and policy
  • a workflow layer for async media and music generation

On this page