curl --request POST \
--url https://api.superx.so/v1/articles/{id}/cover \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"style_text": "dark, minimal, geometric"
}
'import requests
url = "https://api.superx.so/v1/articles/{id}/cover"
payload = { "style_text": "dark, minimal, geometric" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({style_text: 'dark, minimal, geometric'})
};
fetch('https://api.superx.so/v1/articles/{id}/cover', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.superx.so/v1/articles/{id}/cover",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'style_text' => 'dark, minimal, geometric'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.superx.so/v1/articles/{id}/cover"
payload := strings.NewReader("{\n \"style_text\": \"dark, minimal, geometric\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.superx.so/v1/articles/{id}/cover")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"style_text\": \"dark, minimal, geometric\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.superx.so/v1/articles/{id}/cover")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"style_text\": \"dark, minimal, geometric\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"cover": {
"url": "https://media.superx.so/covers/example.jpg"
},
"attached": true,
"remaining_day": 3,
"remaining_month": 11
}
}{
"error": {
"code": "invalid_parameter",
"message": "since must be a UTC ISO-8601 timestamp"
}
}{
"error": {
"code": "invalid_api_key",
"message": "Unknown or revoked API key"
}
}{
"error": {
"code": "insufficient_scope",
"message": "This API key is read-only. Create a key with the write scope to use this endpoint."
}
}{
"error": {
"code": "not_found",
"message": "No article with that id belongs to this account."
}
}{
"error": {
"code": "cover_gen_in_progress",
"message": "A cover is already being generated for this article. Try again once it finishes."
}
}{
"error": {
"code": "cover_gen_cap_daily",
"message": "The daily cover generation cap has been reached.",
"remaining_day": 0,
"remaining_month": 7,
"limit_day": 6,
"limit_month": 13
}
}{
"error": {
"code": "upstream_error",
"message": "Failed to fetch scheduled posts. Try again shortly."
}
}{
"error": {
"code": "upstream_timeout",
"message": "Cover generation did not respond in time and may still have completed. GET the article to check its cover before retrying."
}
}Generate an AI cover image
Generates a 2.5:1 cover image from the article’s TITLE (a title is required) and, by default, attaches it as the article’s cover. attach: false generates without touching the current cover; attach later via PATCH cover_url. style_text (max 8000 chars) steers the artwork.
Slow (60-100 seconds) and paid: spends AI credits against daily and monthly caps, all enforced server-side. 429 responses carry remaining_day / remaining_month / limit_day / limit_month counters. Supports Idempotency-Key, recommended. Main account only in v1.
curl --request POST \
--url https://api.superx.so/v1/articles/{id}/cover \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"style_text": "dark, minimal, geometric"
}
'import requests
url = "https://api.superx.so/v1/articles/{id}/cover"
payload = { "style_text": "dark, minimal, geometric" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({style_text: 'dark, minimal, geometric'})
};
fetch('https://api.superx.so/v1/articles/{id}/cover', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.superx.so/v1/articles/{id}/cover",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'style_text' => 'dark, minimal, geometric'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.superx.so/v1/articles/{id}/cover"
payload := strings.NewReader("{\n \"style_text\": \"dark, minimal, geometric\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.superx.so/v1/articles/{id}/cover")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"style_text\": \"dark, minimal, geometric\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.superx.so/v1/articles/{id}/cover")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"style_text\": \"dark, minimal, geometric\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"cover": {
"url": "https://media.superx.so/covers/example.jpg"
},
"attached": true,
"remaining_day": 3,
"remaining_month": 11
}
}{
"error": {
"code": "invalid_parameter",
"message": "since must be a UTC ISO-8601 timestamp"
}
}{
"error": {
"code": "invalid_api_key",
"message": "Unknown or revoked API key"
}
}{
"error": {
"code": "insufficient_scope",
"message": "This API key is read-only. Create a key with the write scope to use this endpoint."
}
}{
"error": {
"code": "not_found",
"message": "No article with that id belongs to this account."
}
}{
"error": {
"code": "cover_gen_in_progress",
"message": "A cover is already being generated for this article. Try again once it finishes."
}
}{
"error": {
"code": "cover_gen_cap_daily",
"message": "The daily cover generation cap has been reached.",
"remaining_day": 0,
"remaining_month": 7,
"limit_day": 6,
"limit_month": 13
}
}{
"error": {
"code": "upstream_error",
"message": "Failed to fetch scheduled posts. Try again shortly."
}
}{
"error": {
"code": "upstream_timeout",
"message": "Cover generation did not respond in time and may still have completed. GET the article to check its cover before retrying."
}
}Authorizations
A SuperX API key ("sxk_..."), created in the SuperX app under Account > API / MCP / CLI. Keys are server-side secrets.
Headers
Unique key (max 64 characters) for safe retries. Replays carry the "Idempotency-Replayed" response header set to "true". Keys are retained for 24 hours.
64Path Parameters
Body
Response
The generated cover.
Show child attributes
Show child attributes