Repair vintage portrait
Repair scratches and missing emulsion in the masked areas of the vintage portrait, preserve original facial features and film grain, maintain monochrome tonality, do not beautify or modernize.
A restoration workflow for damaged portraits that prioritizes identity, period details, natural texture, and reversible review notes.
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 ↗Restoration prompts need stronger preservation language than creative edits; this guide records protected facial features, damage targets, historical details, and acceptance criteria.
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,
)