Citations Service
Generate academic references for text content. This service helps create properly formatted citations for academic papers, articles, and other sources mentioned in your text.
This endpoint consumes tokens based on the complexity and length of the text being processed. Learn more about billing.
Generate References
Endpoint
POST /api/citation/generate
Headers
Name | Description |
---|---|
Content-Type | application/json |
X-API-Key | Your API key |
Request Body
Parameter | Type | Description |
---|---|---|
text | string | The text to generate references for |
count | number | Number of references to generate (optional) |
Success Response
Field | Type | Description |
---|---|---|
references | string[] | Array of generated references |
tokensUsed | number | Number of tokens consumed by this request |
Code Examples
curl -X POST https://api.example.com/api/citation/generate \
-H "Content-Type: application/json" \
-H "X-API-Key: your_api_key_here" \
-d '{
"text": "The text to generate references for",
"count": 3
}'