gpt-6-luna

by OpenAIText

GPT-6 Luna API by OpenAI on TTAPI supports efficient, high-volume reasoning workflows with text or image input through OpenAI-compatible chat completions.

Last updated:
InputPromptmessages
Models28available
FlowSyncresult URL
Price20% offofficial
gpt-6-lunaExample conversation
You

Review a TypeScript webhook handler for reliability risks and propose the highest-value fixes. Keep the answer practical for a gpt-6-luna integration.

gpt-6-luna logo
gpt-6-luna

Verify signatures against the raw body, reject stale events, deduplicate by event ID, acknowledge quickly, and move slow work to a retried background queue. This example is tailored to the gpt-6-luna model page.

Examples

A request and response, in context

01 · Code reviewgpt-6-luna
You

Review a TypeScript webhook handler for reliability risks and propose the highest-value fixes. Keep the answer practical for a gpt-6-luna integration.

gpt-6-luna logo
gpt-6-luna

Verify signatures against the raw body, reject stale events, deduplicate by event ID, acknowledge quickly, and move slow work to a retried background queue. This example is tailored to the gpt-6-luna model page.

02 · Query designgpt-6-luna
You

Explain how to choose indexes for a job table filtered by owner, status, and creation time. Keep the answer practical for a gpt-6-luna integration.

gpt-6-luna logo
gpt-6-luna

Begin from the most common filter order, use a composite index that supports the leading predicates, measure the actual query plan, and retain a simple retention strategy for old rows. This example is tailored to the gpt-6-luna model page.

03 · Product briefgpt-6-luna
You

Summarize a product brief for a developer API in five concise bullets. Keep the answer practical for a gpt-6-luna integration.

gpt-6-luna logo
gpt-6-luna

Cover the customer problem, primary workflow, integration surface, pricing or quota rule, and the measurable outcome that defines adoption. This example is tailored to the gpt-6-luna model page.

Capabilities

What you can build with gpt-6-luna

Prompt driven generation

Submit a concise prompt and get production-ready responses output through one TTAPI job.

Core controls only

Keep integration simple with prompt, model, output settings, and callback handling.

Async result flow

Use polling or webhook callbacks so long-running generations do not block your UI.

Ready for product UI

Return ChatGPT results that can be displayed, stored, or passed into downstream workflows.

Pricing

Token billing rules

One key and one balance across supported text models.

Token billing ruleOfficial pricing
PlatformTTAPI billing
OpenAI20% off official pricing
API request

Headers and submit parameters

Use the endpoint below with your TTAPI key and the request fields shown.

POSThttps://api.ttapi.io/v1/chat/completions

Headers

Authorizationstringrequired

Bearer token using your TTAPI API key.

Content-Typestringrequired

Use application/json.

Body

messagesobject[]required

OpenAI-compatible conversation messages. Example: [{ role: "user", content: "Hello!" }].

modelstringrequired

Supported OpenAI model identifier, such as gpt-6.1-terra.

streambooleanoptional

Enable server-sent events for progressive response transmission; defaults to false.

Open the official TTAPI documentation
Integrate

From key to first result

Copy the resolved endpoint, authentication headers, and request body for this model.

curl --request POST \
  --url https://api.ttapi.io/v1/chat/completions \
  --header "Authorization: Bearer $TTAPI_KEY" \
  --header 'Content-Type: application/json' \
  --data '{"model":"gpt-6-luna","messages":[{"role":"user","content":"Design a reliable retry strategy."}],"stream":false}'