API reference
Use the Cuppa API to generate content and images using AI. The capabilities of the API are defined in the next sections.
Authentication
To use the API, you need to authenticate using an API key. Go to your Cuppa settings to obtain an API key. Include the API key in the X-API-KEY header of your requests as follows:
curl -X GET "https://api.cuppa.ai/v1/meta" \
-H "accept: application/json" \
-H "X-API-KEY: YOUR_API_KEY"Rate Limiting
The API has rate limits in place to ensure fair usage.
Error Handling
The API returns standard HTTP status codes to indicate the success or failure of a request. In case of an error, the response will contain an error object with details about the error.
The model to use for image generation. Use the /v1/meta/image_models endpoint to get available image models.
The prompt to use for image generation
Successfully generated image
Successfully generated image
Page number for pagination
Filter by language code
Filter by project ID. If not provided, it will return the articles not part of any project. Use all to get all articles.
A list of articles
A list of articles
The target_keyword for the article.
The model to use for the article.
gpt-4o-miniThe settings preset to use for the article. Use the settings object to override specific settings. Go to your presets to create a preset.
Whether the article is a draft
falseArticle created successfully
Article created successfully
Name of the project
The model to use for the article. Use the /v1/meta/models endpoint to get available models.
gpt-4o-miniThe settings preset to use for the project. Use the common_settings object to override specific settings. Go to your presets to create a preset.
The target keywords to generate content for.
Project created successfully
Project created successfully
Last updated
Was this helpful?
