Docs

GPT 6 Luna API developer guide

GPT 6 Luna is currently "Available". This guide provides model IDs, price snapshots, and copyable examples for integration. GPT 6 Luna model page

Overview

  • Vendor: OpenAI
  • Type: Text
  • Number of tiers: 1
  • Endpoint tags: openai

Available tiers and pricing

The model in requests must use the model IDs in the table below, case-sensitive.

gpt-6-luna

Catalog reference rates · billed on actual token usage

Input tokens
$0.092 / 1M tokens
Output tokens
$0.45 / 1M tokens
More price combinations
Cached input
$0.092 / 1M tokens
Cache write
$0.115 / 1M tokens
Cache write (1 hour)
$0.184 / 1M tokens
Image input tokens
$0.092 / 1M tokens
Audio input tokens
$0.092 / 1M tokens
Audio output tokens
$0.092 / 1M tokens

Context tiers are not listed. Reference rates may not apply at every context length.

Snapshot time Final charges depend on the actual request and settlement.

Compare pricing

Base URL and authentication

Base URL is https://api.rokoapi.com/v1. All requests must include Authorization: Bearer $OPENAI_API_KEY.

Console

Quickstart

curl -sS "https://api.rokoapi.com/v1/chat/completions" \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "gpt-6-luna",
  "messages": [
    {
      "role": "system",
      "content": "Return a JSON object with a summary key."
    },
    {
      "role": "user",
      "content": "The build failed because a dependency was missing."
    }
  ],
  "stream": false
}'

Response schema example

Illustrative data

{
  "choices": [
    {
      "message": {
        "role": "assistant",
        "content": "…"
      }
    }
  ],
  "usage": {
    "prompt_tokens": 1,
    "completion_tokens": 1,
    "total_tokens": 2
  }
}

For streaming, append choices[].delta.content from SSE events. For a complete response, read choices[].message.content. Prompted JSON still needs parsing and validation. Tool calls, vision input and context limits are unconfirmed in the current catalog.

Handle failures

  • 400Check field types, allowed values and asset mode.
  • 401 / 403Check the bearer key and model access.
  • 429Honor Retry-After when present and back off.

Request parameters

Common parameters
FieldDetails
string · RequiredUse this public model ID.
gpt-6-luna
array · RequiredPass ordered role/content objects. Include the relevant turns for follow-up requests.
Advanced parameters
FieldDetails
boolean · OptionalSet true to request SSE deltas.
Defaultfalse
integer · OptionalCap the number of generated tokens.Affects cost

Notes

  • Use only the model IDs listed on this page; unprovisioned or retired names will return a model unavailable error.
  • If you encounter a 403 error, check your account balance, key group, and model access permissions.
  • Multimodal, tool calling, caching, and streaming capabilities depend on the upstream model and channel configuration; refer to actual responses.