POST /api/v1/images/generate
curl --request POST \
--url https://api.draftliftai.com/api/v1/images/generateimport requests
url = "https://api.draftliftai.com/api/v1/images/generate"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.draftliftai.com/api/v1/images/generate', 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.draftliftai.com/api/v1/images/generate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.draftliftai.com/api/v1/images/generate"
req, _ := http.NewRequest("POST", url, nil)
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.draftliftai.com/api/v1/images/generate")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.draftliftai.com/api/v1/images/generate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodyImages
Generate (Images)
deprecated
POST
/
api
/
v1
/
images
/
generate
POST /api/v1/images/generate
curl --request POST \
--url https://api.draftliftai.com/api/v1/images/generateimport requests
url = "https://api.draftliftai.com/api/v1/images/generate"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.draftliftai.com/api/v1/images/generate', 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.draftliftai.com/api/v1/images/generate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.draftliftai.com/api/v1/images/generate"
req, _ := http.NewRequest("POST", url, nil)
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.draftliftai.com/api/v1/images/generate")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.draftliftai.com/api/v1/images/generate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodyStandalone image generation and editing are retired for DraftLift’s writing-only launch.
Every request returns HTTP 410 with
error_code: IMAGE_OPERATIONS_RETIRED before authentication, quota reservation, queue admission or provider calls. A protocol header or plan upgrade cannot enable these operations. Do not retry or resubmit a previously admitted request.
Existing assets remain available through authorized image/file reads, download, references and content links. Previously admitted job IDs can still be observed through GET /api/v1/images/jobs/{jobId}. An unknown job remains unknown until its existing owner can reconcile it; it must not be replayed.Response
410
IMAGE_OPERATIONS_RETIRED: DraftLift is writing-only. Image generation and editing are unavailable before authentication, quota reservation or dispatch. Existing asset and job reads remain authorized and available.
Was this page helpful?