GPT 4.1 Nano

OpenAI · Text · Context 1.05M

gpt-4.1-nano Try

Pricing

Per 1 million tokens
MarkasAIVendor list price
InputRp 1.771Rp 1.789
OutputRp 7.079Rp 7.156
CacheRp 444
Cache writeRp 1.771

MarkasAI sale prices in Rupiah, read from the same catalog as GET /v1/models. Prices can change and apply to later requests.

Specifications

Model ID
gpt-4.1-nano
Provider
OpenAI
Type
Text
Endpoint
POST /v1/chat/completions
Context window
1,047,576 tokens
Output limit per request
Not recorded yet

About this model

For tasks that demand low latency, GPT‑4.1 nano is the fastest and cheapest model in the GPT-4.1 series. It delivers exceptional performance at a small size with its 1 million...

Quoted from the provider's public catalog, in English.

Call example

curl https://api.markas.ai.id/v1/chat/completions \
  -H "Authorization: Bearer $MARKASAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-4.1-nano",
    "messages": [{"role": "user", "content": "What is an API?"}],
    "max_tokens": 300
  }'
import os
from openai import OpenAI

client = OpenAI(base_url="https://api.markas.ai.id/v1", api_key=os.environ["MARKASAI_API_KEY"])

resp = client.chat.completions.create(
    model="gpt-4.1-nano",
    messages=[{"role": "user", "content": "What is an API?"}],
    max_tokens=300,
)
print(resp.choices[0].message.content)
import OpenAI from "openai";

const client = new OpenAI({ baseURL: "https://api.markas.ai.id/v1", apiKey: process.env.MARKASAI_API_KEY });

const resp = await client.chat.completions.create({
  model: "gpt-4.1-nano",
  messages: [{ role: "user", content: "What is an API?" }],
  max_tokens: 300,
});
console.log(resp.choices[0].message.content);

Keep your API key in the MARKASAI_API_KEY environment variable. Read the endpoint docs

All models