curl --request POST \
--url https://us.api.flexprice.io/v1/ai/pricing/parse-gemini \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"responseSchema": {},
"systemPrompt": "You are a pricing architect...",
"userPrompt": "Describe pricing for..."
}
'{}Server-side Gemini call: accepts system prompt, user prompt, and response JSON schema from the client and returns parsed pricing schema JSON.
curl --request POST \
--url https://us.api.flexprice.io/v1/ai/pricing/parse-gemini \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"responseSchema": {},
"systemPrompt": "You are a pricing architect...",
"userPrompt": "Describe pricing for..."
}
'{}Enter your API key in the format x-api-key <api-key>*
Prompts and Gemini responseSchema
Pricing schema JSON (features, plans, ...)
The response is of type object.