Skip to content
API Reference

Authentication

Connect to Infe using your API key with Bearer authentication.

Base URL

All API requests should be made to:

https://api.infe.io/v1

Authentication

Infe uses API keys for authentication. Include your key in the Authorization header:

Header
Authorization: Bearer infe_your_api_key_here
Security Best Practices
  • • Never commit API keys to version control
  • • Use environment variables in production
  • • Rotate keys periodically from your dashboard
  • • Use separate keys for development and production

API Key Format

Infe API keys follow this format:

infe_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Keys are 32 characters following the infe_ prefix

Request Format

All requests must include:

HeaderValueRequired
AuthorizationBearer {api_key}Yes
Content-Typeapplication/jsonYes

Response Headers

Infe includes helpful headers in every response:

HeaderDescription
x-request-idUnique request ID for debugging
x-infe-regionEdge region that handled the request
openai-processing-msTotal processing time in milliseconds
Infe-Unit-CostCredits consumed for this request
x-ratelimit-remaining-requestsRemaining requests in rate limit window

Rate Limiting

Rate limits vary by plan. When you exceed your limit, you'll receive a 429 Too Many Requests response.

PlanRequests/minTokens/min
Free2010,000
Starter100100,000
Pro500500,000

API Endpoints