Documentation

API Reference

Nativ is an OpenAI-compatible AI gateway. Use any model with optional cultural intelligence — just change your base URL.

What is Nativ?

Nativ is an AI gateway that routes your requests to any model (GPT-5.4, Claude, Gemini, DeepSeek, Llama, and more) through a single OpenAI-compatible API. It works as a drop-in replacement for the OpenAI SDK — just change the base URL.

Optionally, pass a nativ parameter to enable cultural intelligence — automatic cultural adaptation of your AI outputs for any target market. The gateway works perfectly fine without it too.

Getting started in 30 seconds

1Get an API key — no credit card
curl -X POST https://nativ.nanocorp.app/v1/auth/signup \
  -H "Content-Type: application/json" \
  -d '{"email": "you@example.com"}'

# Response: { "api_key": "nativ_sk_live_...", ... }
2Send a request — use any model
from openai import OpenAI

client = OpenAI(
    base_url="https://nativ.nanocorp.app/v1",
    api_key="YOUR_KEY"
)

response = client.chat.completions.create(
    model="google/gemini-2.5-flash",
    messages=[{"role": "user", "content": "Hello, world!"}]
)
print(response.choices[0].message.content)
3Add cultural intelligence OPTIONAL

Pass the nativ parameter in extra_body to automatically adapt AI outputs for a target culture. Without it, the gateway works like a standard proxy.

from openai import OpenAI

client = OpenAI(
    base_url="https://nativ.nanocorp.app/v1",
    api_key="YOUR_KEY"
)

response = client.chat.completions.create(
    model="google/gemini-2.5-flash",
    messages=[{"role": "user", "content": "Write a marketing email for Japan"}],
    extra_body={"nativ": {"target_culture": "jp", "adapt": True}}
)
print(response.choices[0].message.content)

Base URL

https://nativ.nanocorp.app

OpenAI SDK-compatible. Just set base_url (Python) or baseURL (Node.js) and use it like any OpenAI client.

Authentication

All endpoints except /v1/auth/signup, /v1/models, and /v1/cultures require Bearer token auth.

Header
Authorization: Bearer nativ_sk_live_your_key_here

Endpoints

Complete API reference for all available endpoints.

POST

/v1/chat/completions

The primary gateway endpoint. OpenAI-compatible chat completions — routes to any model on OpenRouter. Optionally pass a nativ object for cultural adaptation.

The nativ parameter (optional)

FieldTypeDescription
target_culturestringTarget culture code (e.g. "jp", "fr-FR")
adaptbooleanEnable cultural adaptation (default: false)

Example

curl https://nativ.nanocorp.app/v1/chat/completions \
  -H "Authorization: Bearer nativ_sk_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-5.4",
    "messages": [
      {"role": "system", "content": "You are a helpful assistant."},
      {"role": "user", "content": "Write a product description"}
    ],
    "nativ": {"target_culture": "ja-JP", "adapt": true}
  }'
GET

/v1/models

List all available models. No authentication required. Returns the same format as the OpenAI models endpoint.

cURL
curl https://nativ.nanocorp.app/v1/models
POST

/v1/adapt

Standalone cultural adaptation endpoint. Send text content and get a culturally-adapted version for your target market. This is a dedicated endpoint — for inline adaptation during chat, use /v1/chat/completions with the nativ parameter instead.

Request Body

ParameterTypeRequiredDescription
textstringrequiredThe text content to adapt
target_culturestringrequiredTarget culture code (e.g. "ja-JP")
source_culturestringrequiredSource culture code (e.g. "en-US")
curl -X POST https://nativ.nanocorp.app/v1/adapt \
  -H "Authorization: Bearer nativ_sk_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "text": "This product is a game-changer!",
    "source_culture": "en-US",
    "target_culture": "ja-JP"
  }'
POST

/v1/auth/signup

Create an account and get an API key instantly. No credit card required. New accounts start with 500K free tokens per month.

Example Response

Response201 Created
{
  "api_key": "nativ_sk_live_...",
  "account": {
    "id": 12,
    "email": "you@example.com",
    "plan": "free"
  },
  "usage": {
    "period_start": "2026-04-01T00:00:00.000Z",
    "period_end": "2026-05-01T00:00:00.000Z",
    "tokens_used": 0,
    "tokens_limit": 500000
  }
}
GET

/v1/usage

Check your current token usage and limits for the billing period. Requires authentication.

cURL
curl https://nativ.nanocorp.app/v1/usage \
  -H "Authorization: Bearer nativ_sk_live_..."
GET

/v1/cultures

List all supported culture codes for cultural adaptation. No authentication required.

cURL
curl https://nativ.nanocorp.app/v1/cultures

Supported Cultures

en-US
English · United States
en-GB
English · United Kingdom
es-ES
Spanish · Spain
es-MX
Spanish · Mexico
fr-FR
French · France
de-DE
German · Germany
it-IT
Italian · Italy
pt-BR
Portuguese · Brazil
pt-PT
Portuguese · Portugal
ja-JP
Japanese · Japan
ko-KR
Korean · South Korea
zh-CN
Chinese · China
zh-TW
Chinese · Taiwan
hi-IN
Hindi · India
ar-SA
Arabic · Saudi Arabia
tr-TR
Turkish · Turkey
nl-NL
Dutch · Netherlands
sv-SE
Swedish · Sweden
pl-PL
Polish · Poland
id-ID
Indonesian · Indonesia

Endpoint summary

MethodEndpointAuthDescription
POST/v1/chat/completionsrequiredChat completions gateway (any model)
GET/v1/modelsnoneList available models
POST/v1/adaptrequiredStandalone cultural adaptation
POST/v1/auth/signupnoneCreate account, get API key
GET/v1/usagerequiredCheck token usage and limits
GET/v1/culturesnoneList supported culture codes

Transparent pricing

500K free tokens/month. After that, OpenRouter model cost + 7%. That's it.

View pricing details