Skip to main content
POST
/
refine
cURL
curl --request POST \
  --url https://api.opengiant.com/v1/refine \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "provider": "<string>",
  "providerApiKey": "<string>",
  "personaId": "<string>",
  "content": "<string>"
}
'
{
  "response": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.opengiant.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Content to refine using OpenGiant persona settings.

provider
string
required

The AI provider (e.g., openai, anthropic, cohere).

providerApiKey
string
required

API key for the selected AI provider.

personaId
string
required

ID of the persona to use for refining.

content
string
required

The raw AI-generated content to refine.

Response

Refined response.

response
string

The refined AI response.