API Documentation

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

NameDescription
Content-Typeapplication/json
X-API-KeyYour API key

Request Body

ParameterTypeDescription
textstringThe text to generate references for
countnumberNumber of references to generate (optional)

Success Response

FieldTypeDescription
referencesstring[]Array of generated references
tokensUsednumberNumber 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
  }'