SeaLinkSeaLink
/
Back to models

OpenAI / gpt-image-2

GPT Image 2

GPT Image 2 generates images for illustration, product visuals, social content, and creative exploration.

Image generation

Context

0K

tokens

Input

$0.063

/ image

Output

$0.063

/ image

Quality

#82

Elo 1140

Overview

What this model is good for

GPT Image 2 generates images for illustration, product visuals, social content, and creative exploration.

Model capabilities

Image output

Can generate or return images through media-generation workflows.

Model maker

Model maker and access

This section shows the model maker, SeaLink model ID, protocol, and pricing information.

OpenAI

Called through SeaLink's unified account, balance, and OpenAI-compatible API.

Protocol

Media generation API

Base URL: https://test.sealink.io/v1

Pricing

Pricing and cost sense

Prices come from the current model catalog. Simple estimates help users judge whether the model fits production volume.

Input$0.063/ image
Output$0.063/ image

Actual billing follows usage logs and billing records; caching and media pricing depend on the endpoint.

API

Copy into your code

The model page should make it clear which model to copy, which base URL to use, and where to get an API Key.

model

gpt-image-2

base_url

https://test.sealink.io/v1

Auth

Bearer $SEALINK_API_KEY
cURL
curl https://test.sealink.io/v1/images/generations \
-H "Authorization: Bearer $SEALINK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-image-2",
"prompt": "A serene lake at sunset, oil painting style",
"n": 1,
"size": "1024x1024"
}'
Python (OpenAI SDK)
import requests
url = "https://test.sealink.io/v1/images/generations"
headers = {"Authorization": f"Bearer {api_key}"}
payload = {
"model": "gpt-image-2",
"prompt": "A serene lake at sunset, oil painting style",
"n": 1,
"size": "1024x1024",
}
resp = requests.post(url, json=payload, headers=headers)
data = resp.json()
print(data["data"][0]["url"])
Node.js (OpenAI SDK)
const resp = await fetch("https://test.sealink.io/v1/images/generations", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.SEALINK_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
model: "gpt-image-2",
prompt: "A serene lake at sunset, oil painting style",
n: 1,
size: "1024x1024",
}),
});
const data = await resp.json();
console.log(data.data[0].url);