Summer drink social ad
Bright summer beverage can on crushed ice, coral and turquoise color blocking, hard flash photography, realistic condensation, product occupies the lower two-thirds, clean space above for campaign copy, no text.
A compact JavaScript image generation example with environment-based authentication and explicit parameters.
APIMart is a multi-model AI API gateway with an OpenAI-compatible endpoint. Use one account to access supported image models, compare current pricing, and choose a cost-efficient option for each workload.
Create an APIMart account ↗A starter for Node.js teams that need a clear request boundary and reproducible prompt metadata.
Store credentials in the environment. Record the exact model identifier, dimensions, test date, and retry count with the resulting asset.
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["APIMART_API_KEY"],
base_url="https://api.apimart.ai/v1",
)
result = client.images.generate(
model="gpt-image-1-official",
prompt=PROMPT,
size="1024x1024",
n=1,
)