RSSAmplifier

Miguel Piedrafita · Apr 24, 2025

A Swift SDK for the OpenAI Images API

0
Sign in to vote or save

This page did not load. You can still read it on the original site — the toolbar below keeps your place in the directory.

import OpenAlImages let client = ImagesAPI(authToken: OPENAI_API_KEY) let response = try await client.create(prompt: "A cute cat") let response = try await client.edit( image: .url( Bundle.main.url(forResource: "image", withExtension: "png"), format: .png ), prompt: "Change the color of the sky" ) OpenAI finally made their latest image generation model available through the API! I'm planning to…

Read on miguel.build

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.