Skip to main content
API Reference: POST /responses

Provider capabilities

The table below summarizes gateway support for this endpoint by provider.
Legend:
  • Supported by Provider and Truefoundry
  • Provided by provider, but not by Truefoundry
  • Provider does not support this feature
For every gateway endpoint and provider, see Supported APIs. This guide explains how to use the OpenAI / Azure OpenAI client to interact with TrueFoundry’s responses endpoint for making inference requests.

Authentication

You’ll need a TrueFoundry API key to authenticate your requests. You can find authentication details from here. You’ll also need to set the x-tfy-provider-name header to the name of the provider integration you’re using. For example, if you’re using an OpenAI provider integration named my-openai-provider, you’ll set the x-tfy-provider-name header to my-openai-provider.

Text Completion

To get a text completion response:

Image Inputs

For tasks involving images:

Exprected Response

Managing Responses

Retrieve Response

Retrieve a response by id.

Expected Output

Delete Response

Delete a response permanently