GPT Image 2
GPT Image 2 is an OpenAI model for text-to-image and image-to-image generation.
Approved Data Classifications
Open Data
Permitted
Sensitive Data
Not Permitted
Restricted Data
Not Permitted
This model is only approved for Open Data. When leveraging NaviGator AI’s suite offerings, please ensure you are selecting models that meet the compliance requirements in accordance with UF’s Data Classifications, grant awards or project specifications, and state and federal law.
Need help figuring out your data classification? Understand UF data classifications links to the official UF resources and provides simplified examples.
Description
GPT Image 2 is an OpenAI model that generates and edits images from text and image input. The price shown is the low-quality price for a 1024 by 1024 image. Higher quality and other sizes cost more.
Capabilities
Modalities
Input: Text, Image. Output: Image.
Price
from $0.006 per image
Released
—
Availability
Providers
Usage
curl -X POST https://api.navigator.ai.ufl.edu/v1/images/generations \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $NAVIGATOR_TOOLKIT_API_KEY" \ -d '{ "model": "gpt-image-2", "prompt": "An alligator walking around the University of Florida saying hi to students.", "n": 1, "response_format": "b64_json" }' \ --output response.jsonpython3 -c 'import base64, json; data = json.load(open("response.json")); open("image.png", "wb").write(base64.b64decode(data["data"][0]["b64_json"]))'