Last reviewed: 2026-06-05

Direct answer

When moving from CometAPI Chat Completions to the Responses endpoint, operators need to verify the request path, required body fields, response shape, error codes, and any feature-specific behaviour (stateful chat, tool calling, multimodal input) before cutting over production traffic.

The CometAPI Responses endpoint is documented at POST /v1/responses. According to the official CometAPI documentation, it supports advanced model outputs with multimodal input, stateful chat, built-in tools, and function calling — a broader feature surface than the Chat Completions endpoint (POST /v1/chat/completions), which targets multi-message conversations with streaming, temperature, and max_tokens controls.

Before cutover you should:

  1. Read the official Responses endpoint reference to confirm the current request schema, required fields, and response shape. The exact field names, types, and defaults must be verified against the live docs because they can change between documentation versions.
  2. Run a smoke test against a non-production environment using a minimal valid request.
  3. Record the result fields you care about and confirm error paths return the codes your error-handling logic expects.
  4. Update any client code that constructs request bodies or parses response objects to match the Responses schema.

See Choose between CometAPI Chat Completions and Responses for guidance on whether Responses is the right endpoint for your use case before starting a migration.


For broader release checks, see Validate CometAPI Chat Completions for Production.

Who this is for

This guide is for backend engineers, platform operators, and integration owners who:

  • Currently use the CometAPI Chat Completions endpoint (POST /v1/chat/completions) and are evaluating or planning a migration to the Responses endpoint (POST /v1/responses).
  • Need a structured checklist of contract areas to verify before production cutover.
  • Want a minimal smoke-test workflow they can run in a staging or sandbox environment.
  • Are responsible for keeping error-handling, logging, and monitoring code aligned with the endpoint they call.

You should be comfortable making HTTP requests with a bearer-token authorization header and reading JSON response objects. You do not need deep knowledge of model internals.


Key takeaways

  • Endpoint paths differ. Chat Completions uses POST /v1/chat/completions; Responses uses POST /v1/responses. Verify the current base URL and path from the official docs before making any requests.
  • Feature surface is broader on Responses. The Responses endpoint supports multimodal input, stateful chat, built-in tools, and function calling. Verify which features apply to your use case and whether your current code needs to handle new response fields.
  • Request and response schemas are distinct. Do not assume field names, types, or defaults carry over from Chat Completions. Read the Responses reference before writing any migration code.
  • Auth scheme may be the same, but verify. Both endpoints are part of the CometAPI Text Models group. However, confirm the current authorization header requirements from the official docs — do not rely on assumptions from another endpoint.
  • Run a smoke test before cutover. A minimal happy-path request and at least one intentional error-path check give you early signal that your integration is wired correctly.
  • Keep a migration log. Record the endpoint called, the response status, and which contract areas passed or failed. This supports rollback decisions if something breaks in production.

Smoke-test workflow

Setup assumptions

  • You have a valid CometAPI API key with permissions to call the Responses endpoint.
  • You have a non-production environment (staging, sandbox, or local) where you can make real API calls without affecting production.
  • You have read the current Responses endpoint reference at https://apidoc.cometapi.com/api/text/responses and noted the required request fields and expected response shape.

Happy-path request plan

Construct a minimal valid request to POST /v1/responses using:

  • The authorization header format specified in the docs (verify the exact header name and token prefix — do not assume Authorization: Bearer is correct without checking).
  • The minimum required body fields as listed in the current Responses reference.
  • A short, deterministic input that produces a predictable response (for example, a single-turn text prompt with a fixed value).

Send the request and verify:

  • HTTP status is 200 (or whatever the docs specify as the success status).
  • The response body parses as valid JSON.
  • The response contains the output fields your application reads (verify field names against the current docs — names may differ from Chat Completions).
  • If the endpoint supports streaming, verify that your client handles the streaming format correctly if you plan to use it.

Error-path check

Send at least one intentionally invalid request to verify your error-handling code:

  • Omit a required field or supply a malformed value.
  • Confirm the HTTP error status and error response shape match what your error handler expects.
  • Verify that the error response fields (for example, an error object with message and type fields) match the shape documented in the Responses reference — do not assume they match Chat Completions error responses.

Minimum assertions

  • Happy path: HTTP 200, valid JSON, required output fields present.
  • Error path: Expected HTTP 4xx status, error response parses without exception, your application logs a useful message.

Pass/fail logging fields

Record the following after each smoke-test run (see the log template below).

What the smoke test must not assert

  • Do not assert specific model names or model identifiers — these can change. Check the CometAPI models reference separately if you need to pin a model.
  • Do not assert response latency, token counts, or pricing in the smoke test — these are not contract-stable assertions.
  • Do not assert the exact wording of error messages — assert the status code and response structure instead.

Sanitized log record template

After each smoke-test run, record the following fields. Use placeholder values only — do not log real API keys, full request bodies, complete response payloads, or personally identifiable information.

date: YYYY-MM-DD run_id: endpoint: POST /v1/responses env: staging | sandbox | production http_status: response_valid_json: true | false required_fields_present: true | false | partial error_path_status: | not_tested error_response_parseable: true | false | not_tested notes: reviewed_by:


Failure modes

  • Evidence gap: the agent cannot inspect the failing log, source page, pull request, or local command output. The safe action is to stop and record the missing evidence instead of guessing.
  • Scope drift: the agent edits files that are not connected to the observed failure. Keep the repair tied to the failing signal and leave unrelated cleanup for a separate task.
  • Environment mismatch: the local check uses different versions, credentials, feature flags, or runtime settings than the hosted path. Record the mismatch before treating the result as proof.
  • Unreviewed fallback: the agent changes models, endpoints, permissions, or retry behavior to make a run pass without preserving the review boundary. Treat access and provider failures as operational blockers, not topic failures.
  • Weak handoff: the final note says the issue is fixed but omits the command, result, changed files, and remaining uncertainty. That makes the next operator repeat the investigation.

Sources checked

Contract details to verify

The following areas must be verified against the live CometAPI Responses endpoint reference before migration. The “Safe candidate wording” column shows how to reference each area without asserting specific values that may change.

AreaWhat to verifySource URLAccessedSafe candidate wording
Endpoint pathConfirm the full path is /v1/responses and the method is POSThttps://apidoc.cometapi.com/api/text/responses2026-06-05“Send a POST request to the path listed in the Responses reference”
Authorization headerConfirm the header name, token prefix, and where to obtain a keyhttps://apidoc.cometapi.com/api/text/responses2026-06-05“Use the authorization format shown in the Responses reference”
Required request fieldsList all required body fields and their typeshttps://apidoc.cometapi.com/api/text/responses2026-06-05“Include the required fields documented in the Responses reference”
Optional request fieldsList optional fields relevant to your use case (tools, multimodal, stateful)https://apidoc.cometapi.com/api/text/responses2026-06-05“Check optional fields in the Responses reference for your feature requirements”
Response shapeConfirm top-level response field names and typeshttps://apidoc.cometapi.com/api/text/responses2026-06-05“Parse the response fields listed in the Responses reference”
Error response shapeConfirm error object field names and HTTP status codeshttps://apidoc.cometapi.com/api/text/responses2026-06-05“Handle the error shape documented in the Responses reference”
Streaming behaviourConfirm whether streaming is supported and the format (SSE, etc.)https://apidoc.cometapi.com/api/text/responses2026-06-05“Check the streaming section of the Responses reference if you use streaming”
Tool calling / function callingConfirm the request fields and response fields for tool usehttps://apidoc.cometapi.com/api/text/responses2026-06-05“Review the tool calling section in the Responses reference”
Multimodal inputConfirm accepted input types and field formatshttps://apidoc.cometapi.com/api/text/responses2026-06-05“Check the multimodal input section if your requests include non-text content”
Stateful chatConfirm how session or conversation state is maintainedhttps://apidoc.cometapi.com/api/text/responses2026-06-05“Review the stateful chat section in the Responses reference”

FAQ

Q: Do I need to change my authorization header when migrating from Chat Completions to Responses?

Both endpoints are part of the CometAPI Text Models group and use the same API key system, but you should verify the exact authorization header format from the Responses endpoint reference rather than assuming it is identical to Chat Completions. Auth requirements can change independently per endpoint.

Q: Are the request body fields the same between Chat Completions and Responses?

No. The Responses endpoint has a distinct schema designed for its broader feature set (multimodal input, stateful chat, built-in tools, function calling). Read the Responses reference and compare it to the Chat Completions reference before writing migration code. Do not assume field names carry over.

Q: Can I run the Responses endpoint in parallel with Chat Completions during migration?

There is no documented restriction on calling both endpoints simultaneously — they are separate paths. Running them in parallel during a staged rollout is a common migration pattern. Confirm with your team that your logging and error-handling code can distinguish between responses from each endpoint.

Q: What should I do if my smoke test returns an unexpected error?

Check the error response shape against the Responses endpoint reference. Common causes include a missing required field, an incorrect authorization header, or a malformed request body. If the error persists after fixing the obvious causes, consult the CometAPI help center.

Q: Where can I find a list of supported models for the Responses endpoint?

Model identifiers supported by the Responses endpoint are documented in the CometAPI models reference. Do not hard-code model names from third-party sources — always verify against the current official list.

Q: How is the Responses endpoint different from Chat Completions?

See Choose between CometAPI Chat Completions and Responses for a full comparison. The short version: Chat Completions (POST /v1/chat/completions) targets multi-message conversation with streaming and sampling controls; Responses (POST /v1/responses) adds multimodal input, stateful chat, built-in tools, and function calling.


Ready to get started? Start with CometAPI

Reader next step

Run the next implementation or review pass against Validate CometAPI Chat Completions for Production, then keep Smoke-test CometAPI chat completions safely nearby for the surrounding editorial and source boundary.

After the source checks, request assumptions, and review owner are clear, use CometAPI as the reference gateway only for the request paths, model routes, or cost checks the team has actually verified.