Create a meme generation
curl --request POST \
--url https://airgraphic.io/api/meme \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"sourceUrl": "<string>",
"sourceText": "<string>",
"sourceImage": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({sourceUrl: '<string>', sourceText: '<string>', sourceImage: '<string>'})
};
fetch('https://airgraphic.io/api/meme', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"jobId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "queued",
"stages": [
"<string>"
]
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>",
"bucket": "<string>",
"count": 123,
"limit": 123,
"resetAt": "2023-11-07T05:31:56Z"
}{
"error": "<string>",
"code": "<string>"
}Generations
Create a meme generation
Queues one researched meme generation. Memes cost 2 credits and return a job id after culture scouting, template matching, and creative selection.
POST
/
api
/
meme
Create a meme generation
curl --request POST \
--url https://airgraphic.io/api/meme \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"sourceUrl": "<string>",
"sourceText": "<string>",
"sourceImage": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({sourceUrl: '<string>', sourceText: '<string>', sourceImage: '<string>'})
};
fetch('https://airgraphic.io/api/meme', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"jobId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "queued",
"stages": [
"<string>"
]
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>",
"bucket": "<string>",
"count": 123,
"limit": 123,
"resetAt": "2023-11-07T05:31:56Z"
}{
"error": "<string>",
"code": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/jsonmultipart/form-data
- Option 1
- Option 2
- Option 3
Maximum string length:
8000PNG, JPG, or WebP data URI used as the primary source.
Available options:
9:16, 1:1, 4:5, 16:9 Available options:
png, jpeg, webp Maximum string length:
800Maximum string length:
800Maximum string length:
800