GPT-5.6 API Pricing for Test Triage
GPT-5.6 API pricing for CI test triage is route-specific: gpt-5.6-luna is currently $0.009 input and $0.054 output per 1M tokens on the Plus Account Route. To budget a test-failure workflow, measure the log and context tokens you send, cap the diagnosis response, calculate with the named route’s separate input and output rates, and test the exact request before enabling it in a pipeline. That gives a repeatable estimate instead of treating one advertised number as every account’s price.
Test triage is a useful automation target because a failed build often produces more text than a developer needs. A job can collect a failing command, a focused log excerpt, and changed-file context, then ask a model for a short diagnosis and next action. The cost depends on the model, the route, the size of those inputs, and whether the workflow retries or escalates. This guide separates the live pricing facts from practical recommendations for building that workflow.
GPT-5.6 API pricing for test triage
Section titled “GPT-5.6 API pricing for test triage”The live public catalog lists gpt-5.6-luna, gpt-5.6-terra, and gpt-5.6-sol with the OpenAI endpoint type. The following are calculated token prices for routes that are both enabled for each model and have a public route ratio in the current response. Each value is USD per 1M tokens. It is a route price, not an account-wide price or a quality ranking.
| Model and route | Input per 1M tokens | Output per 1M tokens |
|---|---|---|
gpt-5.6-luna - Plus Account Route | $0.009 | $0.054 |
gpt-5.6-luna - Pro Account Route | $0.018 | $0.108 |
gpt-5.6-terra - Plus Account Route | $0.09 | $0.54 |
gpt-5.6-terra - Pro Account Route | $0.18 | $1.08 |
gpt-5.6-sol - Plus Account Route | $0.225 | $1.35 |
gpt-5.6-sol - Pro Account Route | $0.45 | $2.70 |
For token-priced models, the catalog calculation is:
input USD per 1M tokens = model_ratio * 2 * group_ratio[route]output USD per 1M tokens = input price * completion_ratioFor example, the live inputs for gpt-5.6-luna are a model_ratio of 0.1 and a completion_ratio of 6. The Plus Account Route ratio is 0.045, so its price is 0.1 * 2 * 0.045 = $0.009 input per 1M tokens and $0.009 * 6 = $0.054 output per 1M tokens. Recalculate only for a model-route pair present in both lists; do not fill in a price for an enabled group that lacks a route ratio.
The pricing guide has the maintained route table, and Supported Models identifies current model names and endpoint compatibility. Before setting a CI budget, confirm the currently available model and rate at the live pricing page. A route can be available differently for different accounts and service configurations.
Keep the failure payload small and useful
Section titled “Keep the failure payload small and useful”A raw build log is rarely a good model input. It can contain repeated stack frames, unrelated warnings, generated output, and secrets that should not be copied into a prompt. Instead, make the CI step construct a bounded diagnostic packet. This is an engineering recommendation, not a property of the API.
Include the failing command, exit code, the relevant error block, a short changed-file summary, and the test name. Strip or redact credentials, access tokens, connection strings, and customer data before making a request. Limit both the number of log lines and the total bytes. If the failure has no clear error block, record that condition and send it to a human review path rather than expanding the prompt without limit.
The model response should also have a narrow job. Ask for a concise, machine-checkable result such as a category, a short explanation, and a suggested next action. Then validate the result in your CI script before publishing a comment or opening a ticket. A model response is an input to your automation, not proof that the root cause is correct.
These boundaries help cost and reliability at the same time. A smaller packet means fewer input tokens; a specific response contract means less output is likely to be useful. They also make an evaluation set easier to create: save redacted examples for compilation errors, assertion failures, flaky timeouts, dependency failures, and an intentionally ambiguous case.
Make an OpenAI-compatible CI test call
Section titled “Make an OpenAI-compatible CI test call”The documented OpenAI-compatible base URL is https://frugalrelay.me/v1, and the public catalog identifies gpt-5.6-luna as an OpenAI endpoint model. The documented chat-completions path is POST /v1/chat/completions. This Python example sends a bounded, redacted test failure using the canonical model name:
import os
from openai import OpenAI
client = OpenAI( api_key=os.environ["FRUGALRELAY_API_KEY"], base_url="https://frugalrelay.me/v1",)
failure_packet = """Test: test_invoice_totalCommand: pytest tests/billing/test_invoice.py::test_invoice_totalExit code: 1Error: AssertionError: expected 1200, got 0Changed files: billing/totals.py, tests/billing/test_invoice.py"""
response = client.chat.completions.create( model="gpt-5.6-luna", messages=[ { "role": "system", "content": ( "Triage the test failure. Return a category, a concise probable cause, " "and one next debugging action. Do not invent file contents." ), }, {"role": "user", "content": failure_packet}, ], max_tokens=180,)
print(response.choices[0].message.content)Create the key and make the initial request through the getting started guide. Keep the base URL, API key, and model name in CI configuration or a secret store instead of embedding them in a repository script. Run this against a representative fixture set before allowing its result to create issues, annotate pull requests, or affect deployment decisions.
The code demonstrates the request format; it does not establish model quality. Measure parsing success, useful diagnoses, incorrect diagnoses, latency in your environment, and token counts from your own integration. Keep the human escalation path available while those measurements are still new.
Calculate a route-aware CI budget
Section titled “Calculate a route-aware CI budget”For a token-priced request, calculate the estimate from measured input and output tokens:
estimated cost = (input tokens / 1,000,000 * input rate) + (output tokens / 1,000,000 * output rate)Assume a redacted test-failure packet averages 30,000 input tokens and the bounded response averages 1,500 output tokens. On gpt-5.6-luna through the Plus Account Route, the estimate is:
(30,000 / 1,000,000 * $0.009) + (1,500 / 1,000,000 * $0.054)= $0.000351 per triage requestAt 10,000 such requests on the Plus Account Route, the base estimate is $3.51. If 5% trigger one identical follow-up request on that route, add 10,000 * 0.05 * $0.000351, or $0.1755, for a total Plus Account Route planning estimate of $3.6855. The arithmetic uses the Plus Account Route rate and the stated token assumptions; it is not a billing guarantee. A Pro Account Route estimate must use that route’s $0.018 input and $0.108 output rate for gpt-5.6-luna instead.
Do not base a production forecast on the first successful log. Collect token distributions from a sample of real, redacted failures and plan around a high percentile as well as the median. Separate the first call, automatic retry, and human-requested follow-up in telemetry. This makes it possible to see whether cost growth comes from larger logs, verbose responses, retries, or a model change.
Select a GPT-5.6 model with measured results
Section titled “Select a GPT-5.6 model with measured results”The catalog supplies current names, routes, endpoint types, and pricing inputs. It does not publish a test-triage quality ranking. Choosing gpt-5.6-luna, gpt-5.6-terra, or gpt-5.6-sol for a particular repository is therefore a recommendation that needs an evaluation.
Start with a fixed, redacted fixture set. Run each candidate on the same packets and score whether the category is usable, the suggested action is relevant, and the answer avoids unsupported claims. Record token usage, failed calls, and end-to-end time beside the score. Compare cost per useful diagnosis rather than only cost per request: a lower token price is not a lower feature cost if the output repeatedly needs correction or escalation.
Use the current table as a budget input. For example, gpt-5.6-terra on the Plus Account Route costs $0.09 input and $0.54 output per 1M tokens, while gpt-5.6-sol on that same route costs $0.225 input and $1.35 output. Those are live route-specific facts. Whether either is worth using for a particular failure class is a decision your evaluation data should support.
CI test-triage rollout checklist
Section titled “CI test-triage rollout checklist”- Confirm the canonical model name and the named route in the current supported model catalog.
- Verify the route-specific rate at frugalrelay.me/pricing before publishing a forecast or changing CI traffic.
- Redact sensitive values and cap the log excerpt, changed-file context, and response length.
- Measure input and output tokens separately for a representative failure set.
- Include retry, follow-up, and escalation calls in the forecast.
- Validate the response before an automated system posts it or takes an action.
- Compare useful diagnoses, incorrect diagnoses, latency, and total cost per useful diagnosis across candidates.
- Use separate development, staging, and production keys, with limits appropriate to each environment.
Frugal Relay documents per-key daily or monthly limits under API Keys -> Limits in the pricing guide. Treat a limit as one guardrail, alongside bounded retries, timeouts, and explicit failure handling in the CI job. The application controls how much work it sends before any limit is reached.
FAQ: GPT-5.6 test-triage costs
Section titled “FAQ: GPT-5.6 test-triage costs”Is $0.009 the GPT-5.6 API price for every CI job?
Section titled “Is $0.009 the GPT-5.6 API price for every CI job?”No. On the Plus Account Route, the current gpt-5.6-luna price is $0.009 input and $0.054 output per 1M tokens. The same model on the Pro Account Route has different prices. Always identify the route next to the price and verify the current catalog before a rollout.
Which endpoint should a CI script use?
Section titled “Which endpoint should a CI script use?”For the GPT-5.6 models discussed here, the live catalog lists the OpenAI endpoint type. Use the documented base URL https://frugalrelay.me/v1 with POST /v1/chat/completions, then test the exact request and response handling your job needs.
What should a test-triage cost estimate include?
Section titled “What should a test-triage cost estimate include?”Include the measured input tokens for the instruction, log excerpt, and code context; the output tokens for the diagnosis; and every repeat call your workflow can make. Multiply each token count by the input or output rate for the same named route. Keep the assumptions next to the estimate so another engineer can reproduce it.
The practical next step is small: make one redacted request with a model-route pair your account can use, capture its token shape and result, and compare it with a fixture set. That turns GPT-5.6 API pricing from a headline number into a CI cost decision you can audit.