OG Herro

API Keys

Create API keys to generate images programmatically.

No API keys yet

Example request

Call the generation endpoint with your API key in the Authorization header.

const response = await fetch("https://ogherro.com/api/generate", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    Authorization: `Bearer YOUR_API_KEY`,
  },
  body: JSON.stringify({
    url: "https://chatgpt.com",
  }),
});

if (!response.ok) {
  throw new Error("Request failed");
}

const data = await response.json();
console.log("Image URL:", data.url);