/api/v1/ai/prices
GET
/api/v1/ai/prices
const url = 'https://example.com/api/v1/ai/prices';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/v1/ai/pricesParameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”history
string
Responses
Section titled “Responses”Default Response
Media typeapplication/json
object
prices
required
Array<object>
object
providerKind
required
string
model
required
string
version
required
number
rates
required
object
inputPerMtok
required
string
outputPerMtok
required
string
reasoningPerMtok
required
string | null
cachedInputPerMtok
required
string | null
perImage
required
string | null
currency
required
string
effectiveFrom
required
string
supersededAt
required
string | null
source
required
string
listingFetchedAt
required
string | null
Example
{ "prices": [ { "providerKind": "openai", "source": "admin" } ]}