Adds synchronous support for sdxl-fresh-ink. I added a convenience method for this as a reference for customers that want to use AIProxy on their own models
Deprecates polling method of SDXL in favor of sync method
How to generate an SDXL Fresh Ink image by fofr, using Replicate
import AIProxy
let replicateService = AIProxy.replicateService(
partialKey: "partial-key-from-your-developer-dashboard",
serviceURL: "service-url-from-your-developer-dashboard"
)
do {
let input = ReplicateSDXLFreshInkInputSchema(
prompt: "A fresh ink TOK tattoo of monument valley, Utah",
negativePrompt: "ugly, broken, distorted"
)
let urls = try await replicateService.createSDXLFreshInkImageURLs(
input: input
)
print("Done creating SDXL fresh ink image: ", urls.first ?? "")
} catch AIProxyError.unsuccessfulRequest(let statusCode, let responseBody) {
print("Received \(statusCode) status code with response body: \(responseBody)")
} catch {
print("Could not create SDXL fresh ink image: \(error.localizedDescription)")
}
See the full range of controls for generating an image by viewing ReplicateSDXLFreshInkInputSchema.swift
How to generate an SDXL Fresh Ink image by fofr, using Replicate
See the full range of controls for generating an image by viewing
ReplicateSDXLFreshInkInputSchema.swift