API reference
Last updated
Last updated
Use the Cuppa API to generate content and images using AI. The capabilities of the API are defined in the next sections.
To use the API, you need to authenticate using an API key. Go to your Cuppa to obtain an API key. Include the API key in the X-API-KEY
header of your requests as follows:
The API has rate limits in place to ensure fair usage.
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.
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
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
The target_keyword for the article.
The model to use for the article.
gpt-4o-mini
Whether the article is a draft
false
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-mini
The target keywords to generate content for.
Project created successfully