复制
1. claude mcp add runapi -s user -- npx -y @runapi.ai/mcp
2. 重启 Claude Code
3. 粘贴这个 prompt:生成一张图像:"{ "global_settings": { "resolution": "8K ultra high definition", "aspect_ratio": "3:4", "camera_style": "studio food photography with cinematic lighting", "depth_of_field": "shallow depth of field, sharp subject, soft background", "lighting": "soft directional key light, subtle rim light, controlled highlights", "style": "hyper-realistic food illustration with editorial infographic overlays", "composition_rules": [ "no zoom", "no crop", "center-weighted vertical composition", "floating elements frozen in motion" ], "text_design": { "ingredient_name_color": "metallic gold", "ingredient_description_color": "pure white", "font_style": "elegant serif for titles, clean sans-serif for descriptions", "indicator_lines": "long, thin, smooth golden lines with rounded corners" } }, "module_1_image_1_style": { "scene_description": "A vertical stack of assorted cake slices floating above a white ceramic plate against a soft pink gradient background.", "background": { "color": "soft pastel pink", "texture": "smooth gradient", "lighting": "even, studio-lit, no harsh shadows" }, "main_subjects": [ "multiple layered sponge cake slices", "white whipped cream layers", "raspberry cream layer", "chocolate cream topping" ], "visible_ingredients": [ "vanilla sponge cake", "whipped cream", "raspberries", "blueberries", "strawberries", "macarons (vanilla and chocolate)", "chocolate bar pieces", "mint leaves", "small nut fragments" ], "motion_elements": [ "floating fruits", "floating macarons", "crumbs suspended in air" ], "text_labels": [ "Vanilla Cake – soft, fluffy sponge cake layered with white cream filling", "Macaron – creamy filling between almond meringue shells", "Raspberries – juicy, fresh raspberries", "Chocolate Bar – chunks of smooth milk chocolate", "Raspberry Cream – soft sponge cake layered with creamy, fruity raspberry cream" ] }, "module_2_image_2_style": { "scene_description": "Rolled Syrian dessert presented vertically with syrup pouring from above, placed in a warm, rustic kitchen environment.", "background": { "environment": "traditional kitchen", "elements": [ "warm lantern light", "wooden surfaces", "brass and copper utensils" ], "lighting": "warm ambient lighting with soft highlights" }, "main_subjects": [ "rolled white dessert dough", "cream filling spilling out", "golden syrup stream" ], "visible_ingredients": [ "white cheese dough", "cream filling", "pistachios", "sugar syrup" ], "motion_elements": [ "syrup dripping vertically", "pistachio crumbs falling" ], "text_labels": [ "White Cheese Dough – soft outer layer made from cheese and semolina", "Cream Filling – creamy filling inside the roll", "Pistachios – crushed pistachios sprinkled over and inside the rolls" ] }"
复制
1. codex plugin install runapi-mcp@agents
2. 重启 Codex
3. 粘贴这个 prompt:生成一张图像:"{ "global_settings": { "resolution": "8K ultra high definition", "aspect_ratio": "3:4", "camera_style": "studio food photography with cinematic lighting", "depth_of_field": "shallow depth of field, sharp subject, soft background", "lighting": "soft directional key light, subtle rim light, controlled highlights", "style": "hyper-realistic food illustration with editorial infographic overlays", "composition_rules": [ "no zoom", "no crop", "center-weighted vertical composition", "floating elements frozen in motion" ], "text_design": { "ingredient_name_color": "metallic gold", "ingredient_description_color": "pure white", "font_style": "elegant serif for titles, clean sans-serif for descriptions", "indicator_lines": "long, thin, smooth golden lines with rounded corners" } }, "module_1_image_1_style": { "scene_description": "A vertical stack of assorted cake slices floating above a white ceramic plate against a soft pink gradient background.", "background": { "color": "soft pastel pink", "texture": "smooth gradient", "lighting": "even, studio-lit, no harsh shadows" }, "main_subjects": [ "multiple layered sponge cake slices", "white whipped cream layers", "raspberry cream layer", "chocolate cream topping" ], "visible_ingredients": [ "vanilla sponge cake", "whipped cream", "raspberries", "blueberries", "strawberries", "macarons (vanilla and chocolate)", "chocolate bar pieces", "mint leaves", "small nut fragments" ], "motion_elements": [ "floating fruits", "floating macarons", "crumbs suspended in air" ], "text_labels": [ "Vanilla Cake – soft, fluffy sponge cake layered with white cream filling", "Macaron – creamy filling between almond meringue shells", "Raspberries – juicy, fresh raspberries", "Chocolate Bar – chunks of smooth milk chocolate", "Raspberry Cream – soft sponge cake layered with creamy, fruity raspberry cream" ] }, "module_2_image_2_style": { "scene_description": "Rolled Syrian dessert presented vertically with syrup pouring from above, placed in a warm, rustic kitchen environment.", "background": { "environment": "traditional kitchen", "elements": [ "warm lantern light", "wooden surfaces", "brass and copper utensils" ], "lighting": "warm ambient lighting with soft highlights" }, "main_subjects": [ "rolled white dessert dough", "cream filling spilling out", "golden syrup stream" ], "visible_ingredients": [ "white cheese dough", "cream filling", "pistachios", "sugar syrup" ], "motion_elements": [ "syrup dripping vertically", "pistachio crumbs falling" ], "text_labels": [ "White Cheese Dough – soft outer layer made from cheese and semolina", "Cream Filling – creamy filling inside the roll", "Pistachios – crushed pistachios sprinkled over and inside the rolls" ] }"
复制
1. npx @runapi.ai/mcp init cursor
2. 重启 Cursor
3. 粘贴这个 prompt:生成一张图像:"{ "global_settings": { "resolution": "8K ultra high definition", "aspect_ratio": "3:4", "camera_style": "studio food photography with cinematic lighting", "depth_of_field": "shallow depth of field, sharp subject, soft background", "lighting": "soft directional key light, subtle rim light, controlled highlights", "style": "hyper-realistic food illustration with editorial infographic overlays", "composition_rules": [ "no zoom", "no crop", "center-weighted vertical composition", "floating elements frozen in motion" ], "text_design": { "ingredient_name_color": "metallic gold", "ingredient_description_color": "pure white", "font_style": "elegant serif for titles, clean sans-serif for descriptions", "indicator_lines": "long, thin, smooth golden lines with rounded corners" } }, "module_1_image_1_style": { "scene_description": "A vertical stack of assorted cake slices floating above a white ceramic plate against a soft pink gradient background.", "background": { "color": "soft pastel pink", "texture": "smooth gradient", "lighting": "even, studio-lit, no harsh shadows" }, "main_subjects": [ "multiple layered sponge cake slices", "white whipped cream layers", "raspberry cream layer", "chocolate cream topping" ], "visible_ingredients": [ "vanilla sponge cake", "whipped cream", "raspberries", "blueberries", "strawberries", "macarons (vanilla and chocolate)", "chocolate bar pieces", "mint leaves", "small nut fragments" ], "motion_elements": [ "floating fruits", "floating macarons", "crumbs suspended in air" ], "text_labels": [ "Vanilla Cake – soft, fluffy sponge cake layered with white cream filling", "Macaron – creamy filling between almond meringue shells", "Raspberries – juicy, fresh raspberries", "Chocolate Bar – chunks of smooth milk chocolate", "Raspberry Cream – soft sponge cake layered with creamy, fruity raspberry cream" ] }, "module_2_image_2_style": { "scene_description": "Rolled Syrian dessert presented vertically with syrup pouring from above, placed in a warm, rustic kitchen environment.", "background": { "environment": "traditional kitchen", "elements": [ "warm lantern light", "wooden surfaces", "brass and copper utensils" ], "lighting": "warm ambient lighting with soft highlights" }, "main_subjects": [ "rolled white dessert dough", "cream filling spilling out", "golden syrup stream" ], "visible_ingredients": [ "white cheese dough", "cream filling", "pistachios", "sugar syrup" ], "motion_elements": [ "syrup dripping vertically", "pistachio crumbs falling" ], "text_labels": [ "White Cheese Dough – soft outer layer made from cheese and semolina", "Cream Filling – creamy filling inside the roll", "Pistachios – crushed pistachios sprinkled over and inside the rolls" ] }"
复制
1. npx @runapi.ai/mcp init windsurf
2. 重启 Windsurf
3. 粘贴这个 prompt:生成一张图像:"{ "global_settings": { "resolution": "8K ultra high definition", "aspect_ratio": "3:4", "camera_style": "studio food photography with cinematic lighting", "depth_of_field": "shallow depth of field, sharp subject, soft background", "lighting": "soft directional key light, subtle rim light, controlled highlights", "style": "hyper-realistic food illustration with editorial infographic overlays", "composition_rules": [ "no zoom", "no crop", "center-weighted vertical composition", "floating elements frozen in motion" ], "text_design": { "ingredient_name_color": "metallic gold", "ingredient_description_color": "pure white", "font_style": "elegant serif for titles, clean sans-serif for descriptions", "indicator_lines": "long, thin, smooth golden lines with rounded corners" } }, "module_1_image_1_style": { "scene_description": "A vertical stack of assorted cake slices floating above a white ceramic plate against a soft pink gradient background.", "background": { "color": "soft pastel pink", "texture": "smooth gradient", "lighting": "even, studio-lit, no harsh shadows" }, "main_subjects": [ "multiple layered sponge cake slices", "white whipped cream layers", "raspberry cream layer", "chocolate cream topping" ], "visible_ingredients": [ "vanilla sponge cake", "whipped cream", "raspberries", "blueberries", "strawberries", "macarons (vanilla and chocolate)", "chocolate bar pieces", "mint leaves", "small nut fragments" ], "motion_elements": [ "floating fruits", "floating macarons", "crumbs suspended in air" ], "text_labels": [ "Vanilla Cake – soft, fluffy sponge cake layered with white cream filling", "Macaron – creamy filling between almond meringue shells", "Raspberries – juicy, fresh raspberries", "Chocolate Bar – chunks of smooth milk chocolate", "Raspberry Cream – soft sponge cake layered with creamy, fruity raspberry cream" ] }, "module_2_image_2_style": { "scene_description": "Rolled Syrian dessert presented vertically with syrup pouring from above, placed in a warm, rustic kitchen environment.", "background": { "environment": "traditional kitchen", "elements": [ "warm lantern light", "wooden surfaces", "brass and copper utensils" ], "lighting": "warm ambient lighting with soft highlights" }, "main_subjects": [ "rolled white dessert dough", "cream filling spilling out", "golden syrup stream" ], "visible_ingredients": [ "white cheese dough", "cream filling", "pistachios", "sugar syrup" ], "motion_elements": [ "syrup dripping vertically", "pistachio crumbs falling" ], "text_labels": [ "White Cheese Dough – soft outer layer made from cheese and semolina", "Cream Filling – creamy filling inside the roll", "Pistachios – crushed pistachios sprinkled over and inside the rolls" ] }"
curl
Node.js
Ruby
Go
复制
curl -X POST https://runapi.ai/api/v1/gpt_image_2/text_to_image \
-H "Authorization: Bearer $RUNAPI_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'JSON'
{
"model": "gpt-image-2",
"prompt": "{ \"global_settings\": { \"resolution\": \"8K ultra high definition\", \"aspect_ratio\": \"3:4\", \"camera_style\": \"studio food photography with cinematic lighting\", \"depth_of_field\": \"shallow depth of field, sharp subject, soft background\", \"lighting\": \"soft directional key light, subtle rim light, controlled highlights\", \"style\": \"hyper-realistic food illustration with editorial infographic overlays\", \"composition_rules\": [ \"no zoom\", \"no crop\", \"center-weighted vertical composition\", \"floating elements frozen in motion\" ], \"text_design\": { \"ingredient_name_color\": \"metallic gold\", \"ingredient_description_color\": \"pure white\", \"font_style\": \"elegant serif for titles, clean sans-serif for descriptions\", \"indicator_lines\": \"long, thin, smooth golden lines with rounded corners\" } }, \"module_1_image_1_style\": { \"scene_description\": \"A vertical stack of assorted cake slices floating above a white ceramic plate against a soft pink gradient background.\", \"background\": { \"color\": \"soft pastel pink\", \"texture\": \"smooth gradient\", \"lighting\": \"even, studio-lit, no harsh shadows\" }, \"main_subjects\": [ \"multiple layered sponge cake slices\", \"white whipped cream layers\", \"raspberry cream layer\", \"chocolate cream topping\" ], \"visible_ingredients\": [ \"vanilla sponge cake\", \"whipped cream\", \"raspberries\", \"blueberries\", \"strawberries\", \"macarons (vanilla and chocolate)\", \"chocolate bar pieces\", \"mint leaves\", \"small nut fragments\" ], \"motion_elements\": [ \"floating fruits\", \"floating macarons\", \"crumbs suspended in air\" ], \"text_labels\": [ \"Vanilla Cake – soft, fluffy sponge cake layered with white cream filling\", \"Macaron – creamy filling between almond meringue shells\", \"Raspberries – juicy, fresh raspberries\", \"Chocolate Bar – chunks of smooth milk chocolate\", \"Raspberry Cream – soft sponge cake layered with creamy, fruity raspberry cream\" ] }, \"module_2_image_2_style\": { \"scene_description\": \"Rolled Syrian dessert presented vertically with syrup pouring from above, placed in a warm, rustic kitchen environment.\", \"background\": { \"environment\": \"traditional kitchen\", \"elements\": [ \"warm lantern light\", \"wooden surfaces\", \"brass and copper utensils\" ], \"lighting\": \"warm ambient lighting with soft highlights\" }, \"main_subjects\": [ \"rolled white dessert dough\", \"cream filling spilling out\", \"golden syrup stream\" ], \"visible_ingredients\": [ \"white cheese dough\", \"cream filling\", \"pistachios\", \"sugar syrup\" ], \"motion_elements\": [ \"syrup dripping vertically\", \"pistachio crumbs falling\" ], \"text_labels\": [ \"White Cheese Dough – soft outer layer made from cheese and semolina\", \"Cream Filling – creamy filling inside the roll\", \"Pistachios – crushed pistachios sprinkled over and inside the rolls\" ] }"
}
JSON
复制
import { GptImage2Client } from "@runapi.ai/gpt-image-2";
const client = new GptImage2Client({
apiKey: process.env.RUNAPI_API_KEY,
});
const result = await client.textToImage.run({
"model": "gpt-image-2",
"prompt": "{ \"global_settings\": { \"resolution\": \"8K ultra high definition\", \"aspect_ratio\": \"3:4\", \"camera_style\": \"studio food photography with cinematic lighting\", \"depth_of_field\": \"shallow depth of field, sharp subject, soft background\", \"lighting\": \"soft directional key light, subtle rim light, controlled highlights\", \"style\": \"hyper-realistic food illustration with editorial infographic overlays\", \"composition_rules\": [ \"no zoom\", \"no crop\", \"center-weighted vertical composition\", \"floating elements frozen in motion\" ], \"text_design\": { \"ingredient_name_color\": \"metallic gold\", \"ingredient_description_color\": \"pure white\", \"font_style\": \"elegant serif for titles, clean sans-serif for descriptions\", \"indicator_lines\": \"long, thin, smooth golden lines with rounded corners\" } }, \"module_1_image_1_style\": { \"scene_description\": \"A vertical stack of assorted cake slices floating above a white ceramic plate against a soft pink gradient background.\", \"background\": { \"color\": \"soft pastel pink\", \"texture\": \"smooth gradient\", \"lighting\": \"even, studio-lit, no harsh shadows\" }, \"main_subjects\": [ \"multiple layered sponge cake slices\", \"white whipped cream layers\", \"raspberry cream layer\", \"chocolate cream topping\" ], \"visible_ingredients\": [ \"vanilla sponge cake\", \"whipped cream\", \"raspberries\", \"blueberries\", \"strawberries\", \"macarons (vanilla and chocolate)\", \"chocolate bar pieces\", \"mint leaves\", \"small nut fragments\" ], \"motion_elements\": [ \"floating fruits\", \"floating macarons\", \"crumbs suspended in air\" ], \"text_labels\": [ \"Vanilla Cake – soft, fluffy sponge cake layered with white cream filling\", \"Macaron – creamy filling between almond meringue shells\", \"Raspberries – juicy, fresh raspberries\", \"Chocolate Bar – chunks of smooth milk chocolate\", \"Raspberry Cream – soft sponge cake layered with creamy, fruity raspberry cream\" ] }, \"module_2_image_2_style\": { \"scene_description\": \"Rolled Syrian dessert presented vertically with syrup pouring from above, placed in a warm, rustic kitchen environment.\", \"background\": { \"environment\": \"traditional kitchen\", \"elements\": [ \"warm lantern light\", \"wooden surfaces\", \"brass and copper utensils\" ], \"lighting\": \"warm ambient lighting with soft highlights\" }, \"main_subjects\": [ \"rolled white dessert dough\", \"cream filling spilling out\", \"golden syrup stream\" ], \"visible_ingredients\": [ \"white cheese dough\", \"cream filling\", \"pistachios\", \"sugar syrup\" ], \"motion_elements\": [ \"syrup dripping vertically\", \"pistachio crumbs falling\" ], \"text_labels\": [ \"White Cheese Dough – soft outer layer made from cheese and semolina\", \"Cream Filling – creamy filling inside the roll\", \"Pistachios – crushed pistachios sprinkled over and inside the rolls\" ] }"
});
console.log(result.id);
复制
require "runapi/gpt_image_2"
client = RunApi::GptImage2::Client.new
result = client.text_to_image.run(
model: "gpt-image-2",
prompt: "{ \"global_settings\": { \"resolution\": \"8K ultra high definition\", \"aspect_ratio\": \"3:4\", \"camera_style\": \"studio food photography with cinematic lighting\", \"depth_of_field\": \"shallow depth of field, sharp subject, soft background\", \"lighting\": \"soft directional key light, subtle rim light, controlled highlights\", \"style\": \"hyper-realistic food illustration with editorial infographic overlays\", \"composition_rules\": [ \"no zoom\", \"no crop\", \"center-weighted vertical composition\", \"floating elements frozen in motion\" ], \"text_design\": { \"ingredient_name_color\": \"metallic gold\", \"ingredient_description_color\": \"pure white\", \"font_style\": \"elegant serif for titles, clean sans-serif for descriptions\", \"indicator_lines\": \"long, thin, smooth golden lines with rounded corners\" } }, \"module_1_image_1_style\": { \"scene_description\": \"A vertical stack of assorted cake slices floating above a white ceramic plate against a soft pink gradient background.\", \"background\": { \"color\": \"soft pastel pink\", \"texture\": \"smooth gradient\", \"lighting\": \"even, studio-lit, no harsh shadows\" }, \"main_subjects\": [ \"multiple layered sponge cake slices\", \"white whipped cream layers\", \"raspberry cream layer\", \"chocolate cream topping\" ], \"visible_ingredients\": [ \"vanilla sponge cake\", \"whipped cream\", \"raspberries\", \"blueberries\", \"strawberries\", \"macarons (vanilla and chocolate)\", \"chocolate bar pieces\", \"mint leaves\", \"small nut fragments\" ], \"motion_elements\": [ \"floating fruits\", \"floating macarons\", \"crumbs suspended in air\" ], \"text_labels\": [ \"Vanilla Cake – soft, fluffy sponge cake layered with white cream filling\", \"Macaron – creamy filling between almond meringue shells\", \"Raspberries – juicy, fresh raspberries\", \"Chocolate Bar – chunks of smooth milk chocolate\", \"Raspberry Cream – soft sponge cake layered with creamy, fruity raspberry cream\" ] }, \"module_2_image_2_style\": { \"scene_description\": \"Rolled Syrian dessert presented vertically with syrup pouring from above, placed in a warm, rustic kitchen environment.\", \"background\": { \"environment\": \"traditional kitchen\", \"elements\": [ \"warm lantern light\", \"wooden surfaces\", \"brass and copper utensils\" ], \"lighting\": \"warm ambient lighting with soft highlights\" }, \"main_subjects\": [ \"rolled white dessert dough\", \"cream filling spilling out\", \"golden syrup stream\" ], \"visible_ingredients\": [ \"white cheese dough\", \"cream filling\", \"pistachios\", \"sugar syrup\" ], \"motion_elements\": [ \"syrup dripping vertically\", \"pistachio crumbs falling\" ], \"text_labels\": [ \"White Cheese Dough – soft outer layer made from cheese and semolina\", \"Cream Filling – creamy filling inside the roll\", \"Pistachios – crushed pistachios sprinkled over and inside the rolls\" ] }"
)
puts result.id
复制
package main
import (
"context"
"fmt"
"log"
"net/http"
"os"
"strings"
)
func main() {
body := strings.NewReader("{\"model\":\"gpt-image-2\",\"prompt\":\"{ \\\"global_settings\\\": { \\\"resolution\\\": \\\"8K ultra high definition\\\", \\\"aspect_ratio\\\": \\\"3:4\\\", \\\"camera_style\\\": \\\"studio food photography with cinematic lighting\\\", \\\"depth_of_field\\\": \\\"shallow depth of field, sharp subject, soft background\\\", \\\"lighting\\\": \\\"soft directional key light, subtle rim light, controlled highlights\\\", \\\"style\\\": \\\"hyper-realistic food illustration with editorial infographic overlays\\\", \\\"composition_rules\\\": [ \\\"no zoom\\\", \\\"no crop\\\", \\\"center-weighted vertical composition\\\", \\\"floating elements frozen in motion\\\" ], \\\"text_design\\\": { \\\"ingredient_name_color\\\": \\\"metallic gold\\\", \\\"ingredient_description_color\\\": \\\"pure white\\\", \\\"font_style\\\": \\\"elegant serif for titles, clean sans-serif for descriptions\\\", \\\"indicator_lines\\\": \\\"long, thin, smooth golden lines with rounded corners\\\" } }, \\\"module_1_image_1_style\\\": { \\\"scene_description\\\": \\\"A vertical stack of assorted cake slices floating above a white ceramic plate against a soft pink gradient background.\\\", \\\"background\\\": { \\\"color\\\": \\\"soft pastel pink\\\", \\\"texture\\\": \\\"smooth gradient\\\", \\\"lighting\\\": \\\"even, studio-lit, no harsh shadows\\\" }, \\\"main_subjects\\\": [ \\\"multiple layered sponge cake slices\\\", \\\"white whipped cream layers\\\", \\\"raspberry cream layer\\\", \\\"chocolate cream topping\\\" ], \\\"visible_ingredients\\\": [ \\\"vanilla sponge cake\\\", \\\"whipped cream\\\", \\\"raspberries\\\", \\\"blueberries\\\", \\\"strawberries\\\", \\\"macarons (vanilla and chocolate)\\\", \\\"chocolate bar pieces\\\", \\\"mint leaves\\\", \\\"small nut fragments\\\" ], \\\"motion_elements\\\": [ \\\"floating fruits\\\", \\\"floating macarons\\\", \\\"crumbs suspended in air\\\" ], \\\"text_labels\\\": [ \\\"Vanilla Cake – soft, fluffy sponge cake layered with white cream filling\\\", \\\"Macaron – creamy filling between almond meringue shells\\\", \\\"Raspberries – juicy, fresh raspberries\\\", \\\"Chocolate Bar – chunks of smooth milk chocolate\\\", \\\"Raspberry Cream – soft sponge cake layered with creamy, fruity raspberry cream\\\" ] }, \\\"module_2_image_2_style\\\": { \\\"scene_description\\\": \\\"Rolled Syrian dessert presented vertically with syrup pouring from above, placed in a warm, rustic kitchen environment.\\\", \\\"background\\\": { \\\"environment\\\": \\\"traditional kitchen\\\", \\\"elements\\\": [ \\\"warm lantern light\\\", \\\"wooden surfaces\\\", \\\"brass and copper utensils\\\" ], \\\"lighting\\\": \\\"warm ambient lighting with soft highlights\\\" }, \\\"main_subjects\\\": [ \\\"rolled white dessert dough\\\", \\\"cream filling spilling out\\\", \\\"golden syrup stream\\\" ], \\\"visible_ingredients\\\": [ \\\"white cheese dough\\\", \\\"cream filling\\\", \\\"pistachios\\\", \\\"sugar syrup\\\" ], \\\"motion_elements\\\": [ \\\"syrup dripping vertically\\\", \\\"pistachio crumbs falling\\\" ], \\\"text_labels\\\": [ \\\"White Cheese Dough – soft outer layer made from cheese and semolina\\\", \\\"Cream Filling – creamy filling inside the roll\\\", \\\"Pistachios – crushed pistachios sprinkled over and inside the rolls\\\" ] }\"}")
req, err := http.NewRequestWithContext(context.Background(), http.MethodPost, "https://runapi.ai/api/v1/gpt_image_2/text_to_image", body)
if err != nil {
log.Fatal(err)
}
req.Header.Set("Authorization", "Bearer "+os.Getenv("RUNAPI_API_KEY"))
req.Header.Set("Content-Type", "application/json")
resp, err := http.DefaultClient.Do(req)
if err != nil {
log.Fatal(err)
}
defer resp.Body.Close()
fmt.Println(resp.Status)
}