UNPKG

nanogpt-client

Version:
831 lines (825 loc) 46.4 kB
import * as _hey_api_client_fetch from '@hey-api/client-fetch'; import { TDataShape, Options as Options$1, Client, RequestResult } from '@hey-api/client-fetch'; type ChatModel = 'EVA-UNIT-01/EVA-LLaMA-3.33-70B-v0.0' | 'EVA-UNIT-01/EVA-LLaMA-3.33-70B-v0.1' | 'EVA-UNIT-01/EVA-Qwen2.5-32B-v0.2' | 'EVA-UNIT-01/EVA-Qwen2.5-72B-v0.2' | 'Envoid/Llama-3.05-NT-Storybreaker-Ministral-70B' | 'Envoid/Llama-3.05-Nemotron-Tenyxchat-Storybreaker-70B' | 'GalrionSoftworks/MN-LooseCannon-12B-v1' | 'Gryphe/MythoMax-L2-13b' | 'Infermatic/MN-12B-Inferor-v0.0' | 'LatitudeGames/Wayfarer-Large-70B-Llama-3.3' | 'Llama-3.1-Tulu-3-405B' | 'Llama-3.3+3.1-70B-ArliAI-RPMax-v1.3' | 'Llama-3.3-70B-MiraiFanfare' | 'MarinaraSpaghetti/NemoMix-Unleashed-12B' | 'Meta-Llama-3-1-405B-Instruct-FP8' | 'Meta-Llama-3-1-8B-Instruct-FP8' | 'Mistral-Nemo-12B-ArliAI-RPMax-v1.2' | 'Mistral-Nemo-12B-Wayfarer' | 'NeverSleep/Llama-3-Lumimaid-70B-v0.1' | 'NeverSleep/Lumimaid-v0.2-70B' | 'Nexusflow/Athene-V2-Chat' | 'Qwen/QwQ-32B-Preview' | 'Qwen/Qwen2.5-Coder-32B-Instruct' | 'Qwen2.5-32B-Dazzling-Star-Aurora-32b-v0.0' | 'Qwen2.5-32B-EVA-v0.2' | 'Sao10K/L3-8B-Stheno-v3.2' | 'Sao10K/L3.1-70B-Euryale-v2.2' | 'Sao10K/L3.1-70B-Hanami-x1' | 'Sao10K/L3.3-70B-Euryale-v2.3' | 'Steelskull/L3.3-Cu-Mai-R1-70b' | 'Steelskull/L3.3-Damascus-R1' | 'Steelskull/L3.3-Electra-R1-70b' | 'Steelskull/L3.3-MS-Evalebis-70b' | 'Steelskull/L3.3-MS-Evayale-70B' | 'Steelskull/L3.3-MS-Nevoria-70b' | 'Steelskull/L3.3-Nevoria-R1-70b' | 'TheDrummer/Anubis-70B-v1' | 'TheDrummer/Cydonia-24B-v2' | 'TheDrummer/Rocinante-12B-v1.1' | 'TheDrummer/UnslopNemo-12B-v4.1' | 'VongolaChouko/Starcannon-Unleashed-12B-v1.0' | 'abacusai/Dracarys-72B-Instruct' | 'aion-labs/aion-1.0' | 'aion-labs/aion-1.0-mini' | 'aion-labs/aion-rp-llama-3.1-8b' | 'amazon/nova-lite-v1' | 'amazon/nova-micro-v1' | 'amazon/nova-pro-v1' | 'anthracite-org/magnum-v2-72b' | 'anthracite-org/magnum-v4-72b' | 'anubis-pro-105b-v1' | 'asi1-mini' | 'azure-gpt-4-turbo' | 'azure-gpt-4o' | 'azure-gpt-4o-mini' | 'azure-o1' | 'azure-o3-mini' | 'chatgpt-4o-latest' | 'chatgpt-4o-latest-reasoner' | 'claude-3-5-haiku-20241022' | 'claude-3-5-sonnet-20240620' | 'claude-3-5-sonnet-20241022' | 'claude-3-7-sonnet-20250219' | 'claude-3-7-sonnet-thinking' | 'claude-3-7-sonnet-thinking:1024' | 'claude-3-7-sonnet-thinking:128000' | 'claude-3-7-sonnet-thinking:32768' | 'claude-3-7-sonnet-thinking:8192' | 'claude-3-opus-20240229' | 'cognitivecomputations/dolphin-mixtral-8x22b' | 'cohere/command-r' | 'cohere/command-r-plus-08-2024' | 'deepclaude' | 'deepseek-ai/DeepSeek-R1-Zero' | 'deepseek-chat' | 'deepseek-chat-cheaper' | 'deepseek-r1-llama-70b' | 'deepseek-r1-nano' | 'deepseek-r1-sambanova' | 'deepseek-reasoner' | 'deepseek-reasoner-cheaper' | 'deepseek-v3-0324' | 'dolphin-2.9.2-qwen2-72b' | 'doubao-1.5-pro-256k' | 'doubao-1.5-pro-32k' | 'doubao-1.5-vision-pro-32k' | 'ernie-4.5-8k-preview' | 'eva-unit-01/eva-qwen-2.5-72b' | 'failspy/Meta-Llama-3-70B-Instruct-abliterated-v3.5' | 'featherless-ai/Qwerky-72B' | 'gemini-2.0-flash-001' | 'gemini-2.0-flash-exp' | 'gemini-2.0-flash-exp-search' | 'gemini-2.0-flash-lite' | 'gemini-2.0-flash-thinking-exp-01-21' | 'gemini-2.0-flash-thinking-exp-1219' | 'gemini-2.0-pro-exp-02-05' | 'gemini-2.0-pro-reasoner' | 'gemini-2.5-pro-exp-03-25' | 'gemini-exp-1206' | 'glm-4' | 'glm-4-air' | 'glm-4-air-0111' | 'glm-4-airx' | 'glm-4-flash' | 'glm-4-long' | 'glm-4-plus' | 'glm-4-plus-0111' | 'glm-zero-preview' | 'google/gemini-flash-1.5' | 'gpt-3.5-turbo' | 'gpt-4-turbo-preview' | 'gpt-4.5-preview' | 'gpt-4.5-preview-2025-02-27-reasoner' | 'gpt-4o' | 'gpt-4o-2024-08-06' | 'gpt-4o-2024-11-20' | 'gpt-4o-mini' | 'gpt-4o-mini-search-preview' | 'gpt-4o-reasoner' | 'gpt-4o-search-preview' | 'huihui-ai/DeepSeek-R1-Distill-Llama-70B-abliterated' | 'huihui-ai/DeepSeek-R1-Distill-Qwen-32B-abliterated' | 'huihui-ai/Llama-3.1-Nemotron-70B-Instruct-HF-abliterated' | 'huihui-ai/Llama-3.3-70B-Instruct-abliterated' | 'hunyuan-t1-latest' | 'hunyuan-turbos-20250226' | 'inflatebot/MN-12B-Mag-Mell-R1' | 'inflection/inflection-3-pi' | 'inflection/inflection-3-productivity' | 'jamba-large-1.6' | 'jamba-mini-1.6' | 'kimi-latest' | 'learnlm-1.5-pro-experimental' | 'meta-llama/llama-3.1-8b-instruct' | 'meta-llama/llama-3.2-3b-instruct' | 'meta-llama/llama-3.2-90b-vision-instruct' | 'meta-llama/llama-3.3-70b-instruct' | 'microsoft/wizardlm-2-7b' | 'microsoft/wizardlm-2-8x22b' | 'minimax/minimax-01' | 'mistral-small-31-24b-instruct' | 'mistralai/Mistral-Nemo-Instruct-2407' | 'mistralai/mistral-7b-instruct' | 'mistralai/mistral-large' | 'mistralai/mistral-saba' | 'mistralai/mistral-tiny' | 'mlabonne/NeuralDaredevil-8B-abliterated' | 'nothingiisreal/L3.1-70B-Celeste-V0.1-BF16' | 'nousresearch/hermes-3-llama-3.1-405b' | 'nvidia/Llama-3.1-Nemotron-70B-Instruct-HF' | 'o1' | 'o1-preview' | 'o3-mini' | 'o3-mini-high' | 'o3-mini-low' | 'olmo-2-32b-instruct' | 'open-r1/OlympicCoder-32B' | 'open-r1/OlympicCoder-7b' | 'openai/o1-pro' | 'phi-4-mini-instruct' | 'phi-4-multimodal-instruct' | 'qwen-long' | 'qwen-max' | 'qwen-plus' | 'qwen-turbo' | 'qwen/qwen-2.5-72b-instruct' | 'qwen25-vl-72b-instruct' | 'qwq-32b' | 'r1-1776' | 'raifle/sorcererlm-8x22b' | 'sonar' | 'sonar-deep-research' | 'sonar-pro' | 'sonar-reasoning' | 'sonar-reasoning-pro' | 'step-2-16k' | 'step-2-16k-exp' | 'step-2-mini' | 'thedrummer/skyfall-36b-v2' | 'undi95/remm-slerp-l2-13b' | 'unsloth/gemma-3-12b-it' | 'unsloth/gemma-3-1b-it' | 'unsloth/gemma-3-27b-it' | 'unsloth/gemma-3-4b-it' | 'unsloth/gemma-3-9b-it' | 'yi-34b-chat-0205' | 'yi-34b-chat-200k' | 'yi-large' | 'yi-large-turbo' | 'yi-lightning' | 'yi-medium-200k'; declare const ChatModel: { readonly EVA_UNIT_01_EVA_L_LA_MA_3_33_70B_V0_0: "EVA-UNIT-01/EVA-LLaMA-3.33-70B-v0.0"; readonly EVA_UNIT_01_EVA_L_LA_MA_3_33_70B_V0_1: "EVA-UNIT-01/EVA-LLaMA-3.33-70B-v0.1"; readonly EVA_UNIT_01_EVA_QWEN2_5_32B_V0_2: "EVA-UNIT-01/EVA-Qwen2.5-32B-v0.2"; readonly EVA_UNIT_01_EVA_QWEN2_5_72B_V0_2: "EVA-UNIT-01/EVA-Qwen2.5-72B-v0.2"; readonly ENVOID_LLAMA_3_05_NT_STORYBREAKER_MINISTRAL_70B: "Envoid/Llama-3.05-NT-Storybreaker-Ministral-70B"; readonly ENVOID_LLAMA_3_05_NEMOTRON_TENYXCHAT_STORYBREAKER_70B: "Envoid/Llama-3.05-Nemotron-Tenyxchat-Storybreaker-70B"; readonly GALRION_SOFTWORKS_MN_LOOSE_CANNON_12B_V1: "GalrionSoftworks/MN-LooseCannon-12B-v1"; readonly GRYPHE_MYTHO_MAX_L2_13B: "Gryphe/MythoMax-L2-13b"; readonly INFERMATIC_MN_12B_INFEROR_V0_0: "Infermatic/MN-12B-Inferor-v0.0"; readonly LATITUDE_GAMES_WAYFARER_LARGE_70B_LLAMA_3_3: "LatitudeGames/Wayfarer-Large-70B-Llama-3.3"; readonly LLAMA_3_1_TULU_3_405B: "Llama-3.1-Tulu-3-405B"; readonly 'LLAMA_3_3+3_1_70B_ARLI_AI_RP_MAX_V1_3': "Llama-3.3+3.1-70B-ArliAI-RPMax-v1.3"; readonly LLAMA_3_3_70B_MIRAI_FANFARE: "Llama-3.3-70B-MiraiFanfare"; readonly MARINARA_SPAGHETTI_NEMO_MIX_UNLEASHED_12B: "MarinaraSpaghetti/NemoMix-Unleashed-12B"; readonly META_LLAMA_3_1_405B_INSTRUCT_FP8: "Meta-Llama-3-1-405B-Instruct-FP8"; readonly META_LLAMA_3_1_8B_INSTRUCT_FP8: "Meta-Llama-3-1-8B-Instruct-FP8"; readonly MISTRAL_NEMO_12B_ARLI_AI_RP_MAX_V1_2: "Mistral-Nemo-12B-ArliAI-RPMax-v1.2"; readonly MISTRAL_NEMO_12B_WAYFARER: "Mistral-Nemo-12B-Wayfarer"; readonly NEVER_SLEEP_LLAMA_3_LUMIMAID_70B_V0_1: "NeverSleep/Llama-3-Lumimaid-70B-v0.1"; readonly NEVER_SLEEP_LUMIMAID_V0_2_70B: "NeverSleep/Lumimaid-v0.2-70B"; readonly NEXUSFLOW_ATHENE_V2_CHAT: "Nexusflow/Athene-V2-Chat"; readonly QWEN_QW_Q_32B_PREVIEW: "Qwen/QwQ-32B-Preview"; readonly QWEN_QWEN2_5_CODER_32B_INSTRUCT: "Qwen/Qwen2.5-Coder-32B-Instruct"; readonly QWEN2_5_32B_DAZZLING_STAR_AURORA_32B_V0_0: "Qwen2.5-32B-Dazzling-Star-Aurora-32b-v0.0"; readonly QWEN2_5_32B_EVA_V0_2: "Qwen2.5-32B-EVA-v0.2"; readonly SAO10K_L3_8B_STHENO_V3_2: "Sao10K/L3-8B-Stheno-v3.2"; readonly SAO10K_L3_1_70B_EURYALE_V2_2: "Sao10K/L3.1-70B-Euryale-v2.2"; readonly SAO10K_L3_1_70B_HANAMI_X1: "Sao10K/L3.1-70B-Hanami-x1"; readonly SAO10K_L3_3_70B_EURYALE_V2_3: "Sao10K/L3.3-70B-Euryale-v2.3"; readonly STEELSKULL_L3_3_CU_MAI_R1_70B: "Steelskull/L3.3-Cu-Mai-R1-70b"; readonly STEELSKULL_L3_3_DAMASCUS_R1: "Steelskull/L3.3-Damascus-R1"; readonly STEELSKULL_L3_3_ELECTRA_R1_70B: "Steelskull/L3.3-Electra-R1-70b"; readonly STEELSKULL_L3_3_MS_EVALEBIS_70B: "Steelskull/L3.3-MS-Evalebis-70b"; readonly STEELSKULL_L3_3_MS_EVAYALE_70B: "Steelskull/L3.3-MS-Evayale-70B"; readonly STEELSKULL_L3_3_MS_NEVORIA_70B: "Steelskull/L3.3-MS-Nevoria-70b"; readonly STEELSKULL_L3_3_NEVORIA_R1_70B: "Steelskull/L3.3-Nevoria-R1-70b"; readonly THE_DRUMMER_ANUBIS_70B_V1: "TheDrummer/Anubis-70B-v1"; readonly THE_DRUMMER_CYDONIA_24B_V2: "TheDrummer/Cydonia-24B-v2"; readonly THE_DRUMMER_ROCINANTE_12B_V1_1: "TheDrummer/Rocinante-12B-v1.1"; readonly THE_DRUMMER_UNSLOP_NEMO_12B_V4_1: "TheDrummer/UnslopNemo-12B-v4.1"; readonly VONGOLA_CHOUKO_STARCANNON_UNLEASHED_12B_V1_0: "VongolaChouko/Starcannon-Unleashed-12B-v1.0"; readonly ABACUSAI_DRACARYS_72B_INSTRUCT: "abacusai/Dracarys-72B-Instruct"; readonly AION_LABS_AION_1_0: "aion-labs/aion-1.0"; readonly AION_LABS_AION_1_0_MINI: "aion-labs/aion-1.0-mini"; readonly AION_LABS_AION_RP_LLAMA_3_1_8B: "aion-labs/aion-rp-llama-3.1-8b"; readonly AMAZON_NOVA_LITE_V1: "amazon/nova-lite-v1"; readonly AMAZON_NOVA_MICRO_V1: "amazon/nova-micro-v1"; readonly AMAZON_NOVA_PRO_V1: "amazon/nova-pro-v1"; readonly ANTHRACITE_ORG_MAGNUM_V2_72B: "anthracite-org/magnum-v2-72b"; readonly ANTHRACITE_ORG_MAGNUM_V4_72B: "anthracite-org/magnum-v4-72b"; readonly ANUBIS_PRO_105B_V1: "anubis-pro-105b-v1"; readonly ASI1_MINI: "asi1-mini"; readonly AZURE_GPT_4_TURBO: "azure-gpt-4-turbo"; readonly AZURE_GPT_4O: "azure-gpt-4o"; readonly AZURE_GPT_4O_MINI: "azure-gpt-4o-mini"; readonly AZURE_O1: "azure-o1"; readonly AZURE_O3_MINI: "azure-o3-mini"; readonly CHATGPT_4O_LATEST: "chatgpt-4o-latest"; readonly CHATGPT_4O_LATEST_REASONER: "chatgpt-4o-latest-reasoner"; readonly CLAUDE_3_5_HAIKU_20241022: "claude-3-5-haiku-20241022"; readonly CLAUDE_3_5_SONNET_20240620: "claude-3-5-sonnet-20240620"; readonly CLAUDE_3_5_SONNET_20241022: "claude-3-5-sonnet-20241022"; readonly CLAUDE_3_7_SONNET_20250219: "claude-3-7-sonnet-20250219"; readonly CLAUDE_3_7_SONNET_THINKING: "claude-3-7-sonnet-thinking"; readonly 'CLAUDE_3_7_SONNET_THINKING:1024': "claude-3-7-sonnet-thinking:1024"; readonly 'CLAUDE_3_7_SONNET_THINKING:128000': "claude-3-7-sonnet-thinking:128000"; readonly 'CLAUDE_3_7_SONNET_THINKING:32768': "claude-3-7-sonnet-thinking:32768"; readonly 'CLAUDE_3_7_SONNET_THINKING:8192': "claude-3-7-sonnet-thinking:8192"; readonly CLAUDE_3_OPUS_20240229: "claude-3-opus-20240229"; readonly COGNITIVECOMPUTATIONS_DOLPHIN_MIXTRAL_8X22B: "cognitivecomputations/dolphin-mixtral-8x22b"; readonly COHERE_COMMAND_R: "cohere/command-r"; readonly COHERE_COMMAND_R_PLUS_08_2024: "cohere/command-r-plus-08-2024"; readonly DEEPCLAUDE: "deepclaude"; readonly DEEPSEEK_AI_DEEP_SEEK_R1_ZERO: "deepseek-ai/DeepSeek-R1-Zero"; readonly DEEPSEEK_CHAT: "deepseek-chat"; readonly DEEPSEEK_CHAT_CHEAPER: "deepseek-chat-cheaper"; readonly DEEPSEEK_R1_LLAMA_70B: "deepseek-r1-llama-70b"; readonly DEEPSEEK_R1_NANO: "deepseek-r1-nano"; readonly DEEPSEEK_R1_SAMBANOVA: "deepseek-r1-sambanova"; readonly DEEPSEEK_REASONER: "deepseek-reasoner"; readonly DEEPSEEK_REASONER_CHEAPER: "deepseek-reasoner-cheaper"; readonly DEEPSEEK_V3_0324: "deepseek-v3-0324"; readonly DOLPHIN_2_9_2_QWEN2_72B: "dolphin-2.9.2-qwen2-72b"; readonly DOUBAO_1_5_PRO_256K: "doubao-1.5-pro-256k"; readonly DOUBAO_1_5_PRO_32K: "doubao-1.5-pro-32k"; readonly DOUBAO_1_5_VISION_PRO_32K: "doubao-1.5-vision-pro-32k"; readonly ERNIE_4_5_8K_PREVIEW: "ernie-4.5-8k-preview"; readonly EVA_UNIT_01_EVA_QWEN_2_5_72B: "eva-unit-01/eva-qwen-2.5-72b"; readonly FAILSPY_META_LLAMA_3_70B_INSTRUCT_ABLITERATED_V3_5: "failspy/Meta-Llama-3-70B-Instruct-abliterated-v3.5"; readonly FEATHERLESS_AI_QWERKY_72B: "featherless-ai/Qwerky-72B"; readonly GEMINI_2_0_FLASH_001: "gemini-2.0-flash-001"; readonly GEMINI_2_0_FLASH_EXP: "gemini-2.0-flash-exp"; readonly GEMINI_2_0_FLASH_EXP_SEARCH: "gemini-2.0-flash-exp-search"; readonly GEMINI_2_0_FLASH_LITE: "gemini-2.0-flash-lite"; readonly GEMINI_2_0_FLASH_THINKING_EXP_01_21: "gemini-2.0-flash-thinking-exp-01-21"; readonly GEMINI_2_0_FLASH_THINKING_EXP_1219: "gemini-2.0-flash-thinking-exp-1219"; readonly GEMINI_2_0_PRO_EXP_02_05: "gemini-2.0-pro-exp-02-05"; readonly GEMINI_2_0_PRO_REASONER: "gemini-2.0-pro-reasoner"; readonly GEMINI_2_5_PRO_EXP_03_25: "gemini-2.5-pro-exp-03-25"; readonly GEMINI_EXP_1206: "gemini-exp-1206"; readonly GLM_4: "glm-4"; readonly GLM_4_AIR: "glm-4-air"; readonly GLM_4_AIR_0111: "glm-4-air-0111"; readonly GLM_4_AIRX: "glm-4-airx"; readonly GLM_4_FLASH: "glm-4-flash"; readonly GLM_4_LONG: "glm-4-long"; readonly GLM_4_PLUS: "glm-4-plus"; readonly GLM_4_PLUS_0111: "glm-4-plus-0111"; readonly GLM_ZERO_PREVIEW: "glm-zero-preview"; readonly GOOGLE_GEMINI_FLASH_1_5: "google/gemini-flash-1.5"; readonly GPT_3_5_TURBO: "gpt-3.5-turbo"; readonly GPT_4_TURBO_PREVIEW: "gpt-4-turbo-preview"; readonly GPT_4_5_PREVIEW: "gpt-4.5-preview"; readonly GPT_4_5_PREVIEW_2025_02_27_REASONER: "gpt-4.5-preview-2025-02-27-reasoner"; readonly GPT_4O: "gpt-4o"; readonly GPT_4O_2024_08_06: "gpt-4o-2024-08-06"; readonly GPT_4O_2024_11_20: "gpt-4o-2024-11-20"; readonly GPT_4O_MINI: "gpt-4o-mini"; readonly GPT_4O_MINI_SEARCH_PREVIEW: "gpt-4o-mini-search-preview"; readonly GPT_4O_REASONER: "gpt-4o-reasoner"; readonly GPT_4O_SEARCH_PREVIEW: "gpt-4o-search-preview"; readonly HUIHUI_AI_DEEP_SEEK_R1_DISTILL_LLAMA_70B_ABLITERATED: "huihui-ai/DeepSeek-R1-Distill-Llama-70B-abliterated"; readonly HUIHUI_AI_DEEP_SEEK_R1_DISTILL_QWEN_32B_ABLITERATED: "huihui-ai/DeepSeek-R1-Distill-Qwen-32B-abliterated"; readonly HUIHUI_AI_LLAMA_3_1_NEMOTRON_70B_INSTRUCT_HF_ABLITERATED: "huihui-ai/Llama-3.1-Nemotron-70B-Instruct-HF-abliterated"; readonly HUIHUI_AI_LLAMA_3_3_70B_INSTRUCT_ABLITERATED: "huihui-ai/Llama-3.3-70B-Instruct-abliterated"; readonly HUNYUAN_T1_LATEST: "hunyuan-t1-latest"; readonly HUNYUAN_TURBOS_20250226: "hunyuan-turbos-20250226"; readonly INFLATEBOT_MN_12B_MAG_MELL_R1: "inflatebot/MN-12B-Mag-Mell-R1"; readonly INFLECTION_INFLECTION_3_PI: "inflection/inflection-3-pi"; readonly INFLECTION_INFLECTION_3_PRODUCTIVITY: "inflection/inflection-3-productivity"; readonly JAMBA_LARGE_1_6: "jamba-large-1.6"; readonly JAMBA_MINI_1_6: "jamba-mini-1.6"; readonly KIMI_LATEST: "kimi-latest"; readonly LEARNLM_1_5_PRO_EXPERIMENTAL: "learnlm-1.5-pro-experimental"; readonly META_LLAMA_LLAMA_3_1_8B_INSTRUCT: "meta-llama/llama-3.1-8b-instruct"; readonly META_LLAMA_LLAMA_3_2_3B_INSTRUCT: "meta-llama/llama-3.2-3b-instruct"; readonly META_LLAMA_LLAMA_3_2_90B_VISION_INSTRUCT: "meta-llama/llama-3.2-90b-vision-instruct"; readonly META_LLAMA_LLAMA_3_3_70B_INSTRUCT: "meta-llama/llama-3.3-70b-instruct"; readonly MICROSOFT_WIZARDLM_2_7B: "microsoft/wizardlm-2-7b"; readonly MICROSOFT_WIZARDLM_2_8X22B: "microsoft/wizardlm-2-8x22b"; readonly MINIMAX_MINIMAX_01: "minimax/minimax-01"; readonly MISTRAL_SMALL_31_24B_INSTRUCT: "mistral-small-31-24b-instruct"; readonly MISTRALAI_MISTRAL_NEMO_INSTRUCT_2407: "mistralai/Mistral-Nemo-Instruct-2407"; readonly MISTRALAI_MISTRAL_7B_INSTRUCT: "mistralai/mistral-7b-instruct"; readonly MISTRALAI_MISTRAL_LARGE: "mistralai/mistral-large"; readonly MISTRALAI_MISTRAL_SABA: "mistralai/mistral-saba"; readonly MISTRALAI_MISTRAL_TINY: "mistralai/mistral-tiny"; readonly MLABONNE_NEURAL_DAREDEVIL_8B_ABLITERATED: "mlabonne/NeuralDaredevil-8B-abliterated"; readonly NOTHINGIISREAL_L3_1_70B_CELESTE_V0_1_BF16: "nothingiisreal/L3.1-70B-Celeste-V0.1-BF16"; readonly NOUSRESEARCH_HERMES_3_LLAMA_3_1_405B: "nousresearch/hermes-3-llama-3.1-405b"; readonly NVIDIA_LLAMA_3_1_NEMOTRON_70B_INSTRUCT_HF: "nvidia/Llama-3.1-Nemotron-70B-Instruct-HF"; readonly O1: "o1"; readonly O1_PREVIEW: "o1-preview"; readonly O3_MINI: "o3-mini"; readonly O3_MINI_HIGH: "o3-mini-high"; readonly O3_MINI_LOW: "o3-mini-low"; readonly OLMO_2_32B_INSTRUCT: "olmo-2-32b-instruct"; readonly OPEN_R1_OLYMPIC_CODER_32B: "open-r1/OlympicCoder-32B"; readonly OPEN_R1_OLYMPIC_CODER_7B: "open-r1/OlympicCoder-7b"; readonly OPENAI_O1_PRO: "openai/o1-pro"; readonly PHI_4_MINI_INSTRUCT: "phi-4-mini-instruct"; readonly PHI_4_MULTIMODAL_INSTRUCT: "phi-4-multimodal-instruct"; readonly QWEN_LONG: "qwen-long"; readonly QWEN_MAX: "qwen-max"; readonly QWEN_PLUS: "qwen-plus"; readonly QWEN_TURBO: "qwen-turbo"; readonly QWEN_QWEN_2_5_72B_INSTRUCT: "qwen/qwen-2.5-72b-instruct"; readonly QWEN25_VL_72B_INSTRUCT: "qwen25-vl-72b-instruct"; readonly QWQ_32B: "qwq-32b"; readonly R1_1776: "r1-1776"; readonly RAIFLE_SORCERERLM_8X22B: "raifle/sorcererlm-8x22b"; readonly SONAR: "sonar"; readonly SONAR_DEEP_RESEARCH: "sonar-deep-research"; readonly SONAR_PRO: "sonar-pro"; readonly SONAR_REASONING: "sonar-reasoning"; readonly SONAR_REASONING_PRO: "sonar-reasoning-pro"; readonly STEP_2_16K: "step-2-16k"; readonly STEP_2_16K_EXP: "step-2-16k-exp"; readonly STEP_2_MINI: "step-2-mini"; readonly THEDRUMMER_SKYFALL_36B_V2: "thedrummer/skyfall-36b-v2"; readonly UNDI95_REMM_SLERP_L2_13B: "undi95/remm-slerp-l2-13b"; readonly UNSLOTH_GEMMA_3_12B_IT: "unsloth/gemma-3-12b-it"; readonly UNSLOTH_GEMMA_3_1B_IT: "unsloth/gemma-3-1b-it"; readonly UNSLOTH_GEMMA_3_27B_IT: "unsloth/gemma-3-27b-it"; readonly UNSLOTH_GEMMA_3_4B_IT: "unsloth/gemma-3-4b-it"; readonly UNSLOTH_GEMMA_3_9B_IT: "unsloth/gemma-3-9b-it"; readonly YI_34B_CHAT_0205: "yi-34b-chat-0205"; readonly YI_34B_CHAT_200K: "yi-34b-chat-200k"; readonly YI_LARGE: "yi-large"; readonly YI_LARGE_TURBO: "yi-large-turbo"; readonly YI_LIGHTNING: "yi-lightning"; readonly YI_MEDIUM_200K: "yi-medium-200k"; }; type ImageModel = 'dall-e-3' | 'dall-e-3-hd' | 'dreamshaper_8_93211.safetensors' | 'fast-sdxl' | 'flux-1-dev' | 'flux-lightning' | 'flux-lora' | 'flux-pro' | 'flux-pro/v1.1' | 'flux-pro/v1.1-ultra' | 'flux-realism' | 'flux/schnell' | 'ideogram-ai/ideogram-v2' | 'ideogram-ai/ideogram-v2-turbo' | 'imagen-3.0-generate-002' | 'midjourney' | 'playground-v25' | 'promptchan' | 'proteus-v0.2' | 'recraft-v3' | 'revAnimated_v122.safetensors' | 'sd3_base_medium.safetensors' | 'stable-diffusion-v35-large' | 'stable-diffusion-v35-large/turbo'; declare const ImageModel: { readonly DALL_E_3: "dall-e-3"; readonly DALL_E_3_HD: "dall-e-3-hd"; readonly DREAMSHAPER_8_93211_SAFETENSORS: "dreamshaper_8_93211.safetensors"; readonly FAST_SDXL: "fast-sdxl"; readonly FLUX_1_DEV: "flux-1-dev"; readonly FLUX_LIGHTNING: "flux-lightning"; readonly FLUX_LORA: "flux-lora"; readonly FLUX_PRO: "flux-pro"; readonly FLUX_PRO_V1_1: "flux-pro/v1.1"; readonly FLUX_PRO_V1_1_ULTRA: "flux-pro/v1.1-ultra"; readonly FLUX_REALISM: "flux-realism"; readonly FLUX_SCHNELL: "flux/schnell"; readonly IDEOGRAM_AI_IDEOGRAM_V2: "ideogram-ai/ideogram-v2"; readonly IDEOGRAM_AI_IDEOGRAM_V2_TURBO: "ideogram-ai/ideogram-v2-turbo"; readonly IMAGEN_3_0_GENERATE_002: "imagen-3.0-generate-002"; readonly MIDJOURNEY: "midjourney"; readonly PLAYGROUND_V25: "playground-v25"; readonly PROMPTCHAN: "promptchan"; readonly PROTEUS_V0_2: "proteus-v0.2"; readonly RECRAFT_V3: "recraft-v3"; readonly REV_ANIMATED_V122_SAFETENSORS: "revAnimated_v122.safetensors"; readonly SD3_BASE_MEDIUM_SAFETENSORS: "sd3_base_medium.safetensors"; readonly STABLE_DIFFUSION_V35_LARGE: "stable-diffusion-v35-large"; readonly STABLE_DIFFUSION_V35_LARGE_TURBO: "stable-diffusion-v35-large/turbo"; }; type NegativePrompt = string; type Role = 'user' | 'assistant' | 'system'; declare const Role: { readonly USER: "user"; readonly ASSISTANT: "assistant"; readonly SYSTEM: "system"; }; type Message = { role?: Role; content?: TextContent; }; type TextContent = string; type CompoundMessage = { role?: Role; content?: TextContent | MultipartContent; }; type MultipartContent = Array<MultipartText | MultipartImageUrl>; type MultipartText = { type: 'text'; text: string; }; type MultipartImageUrl = { type: 'image_url'; image_url: { url: string; }; }; type Delta = { content?: string; }; type PaymentSource = 'XNO'; declare const PaymentSource: { readonly XNO: "XNO"; }; type Cost = unknown; type RemainingBalance = unknown; type _Object = 'list' | 'model'; declare const _Object: { readonly LIST: "list"; readonly MODEL: "model"; }; type Created = number; type NanoAddress = string; type ScriptStyle = 'default' | 'engaging_conversational' | 'kind_biography' | 'hero_journey' | 'emotional_story' | 'dramatic_reveal' | 'heartwarming_stories' | 'educational_history' | 'news_brief'; declare const ScriptStyle: { readonly DEFAULT: "default"; readonly ENGAGING_CONVERSATIONAL: "engaging_conversational"; readonly KIND_BIOGRAPHY: "kind_biography"; readonly HERO_JOURNEY: "hero_journey"; readonly EMOTIONAL_STORY: "emotional_story"; readonly DRAMATIC_REVEAL: "dramatic_reveal"; readonly HEARTWARMING_STORIES: "heartwarming_stories"; readonly EDUCATIONAL_HISTORY: "educational_history"; readonly NEWS_BRIEF: "news_brief"; }; type VideoFramework = 'default' | 'emotional_story' | 'product_showcase' | 'tutorial' | 'engaging_conversational' | 'kind_biography' | 'hero_journey' | 'dramatic_reveal' | 'heartwarming_stories' | 'educational_history' | 'news_brief'; declare const VideoFramework: { readonly DEFAULT: "default"; readonly EMOTIONAL_STORY: "emotional_story"; readonly PRODUCT_SHOWCASE: "product_showcase"; readonly TUTORIAL: "tutorial"; readonly ENGAGING_CONVERSATIONAL: "engaging_conversational"; readonly KIND_BIOGRAPHY: "kind_biography"; readonly HERO_JOURNEY: "hero_journey"; readonly DRAMATIC_REVEAL: "dramatic_reveal"; readonly HEARTWARMING_STORIES: "heartwarming_stories"; readonly EDUCATIONAL_HISTORY: "educational_history"; readonly NEWS_BRIEF: "news_brief"; }; type RecraftStyle = 'any' | 'realistic_image' | 'digital_illustration' | 'realistic_image/b_and_w' | 'realistic_image/hard_flash' | 'realistic_image/hdr' | 'realistic_image/natural_light' | 'realistic_image/studio_portrait' | 'realistic_image/enterprise' | 'realistic_image/motion_blur' | 'digital_illustration/pixel_art' | 'digital_illustration/hand_drawn' | 'digital_illustration/grain' | 'digital_illustration/infantile_sketch' | 'digital_illustration/2d_art_poster' | 'digital_illustration/handmade_3d' | 'digital_illustration/hand_drawn_outline' | 'digital_illustration/engraving_color' | 'digital_illustration/2d_art_poster_2'; declare const RecraftStyle: { readonly ANY: "any"; readonly REALISTIC_IMAGE: "realistic_image"; readonly DIGITAL_ILLUSTRATION: "digital_illustration"; readonly REALISTIC_IMAGE_B_AND_W: "realistic_image/b_and_w"; readonly REALISTIC_IMAGE_HARD_FLASH: "realistic_image/hard_flash"; readonly REALISTIC_IMAGE_HDR: "realistic_image/hdr"; readonly REALISTIC_IMAGE_NATURAL_LIGHT: "realistic_image/natural_light"; readonly REALISTIC_IMAGE_STUDIO_PORTRAIT: "realistic_image/studio_portrait"; readonly REALISTIC_IMAGE_ENTERPRISE: "realistic_image/enterprise"; readonly REALISTIC_IMAGE_MOTION_BLUR: "realistic_image/motion_blur"; readonly DIGITAL_ILLUSTRATION_PIXEL_ART: "digital_illustration/pixel_art"; readonly DIGITAL_ILLUSTRATION_HAND_DRAWN: "digital_illustration/hand_drawn"; readonly DIGITAL_ILLUSTRATION_GRAIN: "digital_illustration/grain"; readonly DIGITAL_ILLUSTRATION_INFANTILE_SKETCH: "digital_illustration/infantile_sketch"; readonly DIGITAL_ILLUSTRATION_2D_ART_POSTER: "digital_illustration/2d_art_poster"; readonly DIGITAL_ILLUSTRATION_HANDMADE_3D: "digital_illustration/handmade_3d"; readonly DIGITAL_ILLUSTRATION_HAND_DRAWN_OUTLINE: "digital_illustration/hand_drawn_outline"; readonly DIGITAL_ILLUSTRATION_ENGRAVING_COLOR: "digital_illustration/engraving_color"; readonly DIGITAL_ILLUSTRATION_2D_ART_POSTER_2: "digital_illustration/2d_art_poster_2"; }; type FluxLoraStyle = 'ghibsky-comic-book' | 'colour-sketches' | 'sketch-paint' | '90s-anime' | '2000s-crime-thrillers' | 'xno-symbol-flux'; declare const FluxLoraStyle: { readonly GHIBSKY_COMIC_BOOK: "ghibsky-comic-book"; readonly COLOUR_SKETCHES: "colour-sketches"; readonly SKETCH_PAINT: "sketch-paint"; readonly '90S_ANIME': "90s-anime"; readonly '2000S_CRIME_THRILLERS': "2000s-crime-thrillers"; readonly XNO_SYMBOL_FLUX: "xno-symbol-flux"; }; type CaptionStyle = 'default' | 'minimal' | 'neon' | 'cinematic' | 'fancy' | 'tiktok' | 'highlight' | 'gradient' | 'instagram' | 'vida' | 'manuscripts'; declare const CaptionStyle: { readonly DEFAULT: "default"; readonly MINIMAL: "minimal"; readonly NEON: "neon"; readonly CINEMATIC: "cinematic"; readonly FANCY: "fancy"; readonly TIKTOK: "tiktok"; readonly HIGHLIGHT: "highlight"; readonly GRADIENT: "gradient"; readonly INSTAGRAM: "instagram"; readonly VIDA: "vida"; readonly MANUSCRIPTS: "manuscripts"; }; type VideoQuality = 'low' | 'medium' | 'high'; declare const VideoQuality: { readonly LOW: "low"; readonly MEDIUM: "medium"; readonly HIGH: "high"; }; type TransitionEffect = 'fade' | 'dissolve' | 'slide' | 'zoom' | 'none'; declare const TransitionEffect: { readonly FADE: "fade"; readonly DISSOLVE: "dissolve"; readonly SLIDE: "slide"; readonly ZOOM: "zoom"; readonly NONE: "none"; }; type VoiceId = '9BWtsMINqrJLrRacOk9x' | 'CwhRBWXzGAHq8TQ4Fs17' | 'EXAVITQu4vr4xnSDxMaL' | 'FGY2WhTYpPnrIDTdsKH5' | 'IKne3meq5aSn9XLyUdCD' | 'JBFqnCBsd6RMkjVDRZzb' | 'N2lVS1w4EtoT3dr4eOWO' | 'SAz9YHcvj6GT2YYXdXww' | 'TX3LPaxmHKxFdv7VOQHJ' | 'XB0fDUnXU5powFXDhCwa' | 'Xb7hH8MSUJpSbSDYk0k2' | 'XrExE9yKIg1WjnnlVkGX' | 'bIHbv24MWmeRgasZH58o' | 'cgSgspJ2msm6clMCkdW9' | 'cjVigY5qzO86Huf0OWal' | 'nPczCjzI2devNBz1zQrb' | 'zWDA589rUKXuLnPRDtAG' | 'KHCvMklQZZo0O30ERnVn' | 'Nh2zY9kknu6z4pZy6FhD' | 'YExhVa4bZONzeingloMX'; declare const VoiceId: { readonly '9B_WTS_MI_NQR_J_LR_RAC_OK9X': "9BWtsMINqrJLrRacOk9x"; readonly CWH_RBW_XZ_GA_HQ8TQ4FS17: "CwhRBWXzGAHq8TQ4Fs17"; readonly EXAVIT_QU4VR4XN_S_DX_MA_L: "EXAVITQu4vr4xnSDxMaL"; readonly FGY2_WH_T_YP_PNR_ID_TDS_KH5: "FGY2WhTYpPnrIDTdsKH5"; readonly I_KNE3MEQ5A_SN9X_LY_UD_CD: "IKne3meq5aSn9XLyUdCD"; readonly JB_FQN_CBSD6R_MKJ_VDR_ZZB: "JBFqnCBsd6RMkjVDRZzb"; readonly N2L_VS1W4_ETO_T3DR4E_OWO: "N2lVS1w4EtoT3dr4eOWO"; readonly S_AZ9Y_HCVJ6GT2YY_XD_XWW: "SAz9YHcvj6GT2YYXdXww"; readonly TX3L_PAXM_H_KX_FDV7VOQHJ: "TX3LPaxmHKxFdv7VOQHJ"; readonly XB0F_D_UN_XU5POW_FX_DH_CWA: "XB0fDUnXU5powFXDhCwa"; readonly XB7H_H8MSU_JP_SB_SD_YK0K2: "Xb7hH8MSUJpSbSDYk0k2"; readonly XR_EX_E9Y_K_IG1_WJNNL_VK_GX: "XrExE9yKIg1WjnnlVkGX"; readonly B_I_HBV24M_WME_RGAS_ZH58O: "bIHbv24MWmeRgasZH58o"; readonly CG_SGSP_J2MSM6CL_M_CKD_W9: "cgSgspJ2msm6clMCkdW9"; readonly CJ_VIG_Y5QZ_O86_HUF0O_WAL: "cjVigY5qzO86Huf0OWal"; readonly N_PCZ_CJZ_I2DEV_N_BZ1Z_QRB: "nPczCjzI2devNBz1zQrb"; readonly Z_WDA589R_UK_XU_LN_PR_DT_AG: "zWDA589rUKXuLnPRDtAG"; readonly KH_CV_MKL_QZ_ZO0O30E_RN_VN: "KHCvMklQZZo0O30ERnVn"; readonly NH2Z_Y9KKNU6Z4P_ZY6_FH_D: "Nh2zY9kknu6z4pZy6FhD"; readonly Y_EXH_VA4B_ZO_NZEINGLO_MX: "YExhVa4bZONzeingloMX"; }; type MusicTrack = 'video-creation/music/adventure/temple_of_treasures.mp3' | 'video-creation/music/adventure/adventurous_intro.mp3' | 'video-creation/music/ambient/gentle_ambient_loop.mp3' | 'video-creation/music/ambient/serene_ambience.mp3' | 'video-creation/music/ambient/soothing_ambience.mp3' | 'video-creation/music/ambient/soothing_ambient_backdrop.mp3' | 'video-creation/music/ambient/tranquil_ambience.mp3' | 'video-creation/music/ambient/dreamscape.mp3' | 'video-creation/music/ambient/belonging_resonance.mp3' | 'video-creation/music/ambient/vivid_memories.mp3' | 'video-creation/music/cinematic/cinematic_intro.mp3' | 'video-creation/music/cinematic/cinematic_teaser.mp3' | 'video-creation/music/cinematic/dramatic_cinematic_score.mp3' | 'video-creation/music/cinematic/thriller_cinema_trailer.mp3' | 'video-creation/music/cinematic/fractured_paintings.mp3' | 'video-creation/music/cinematic/promise_of_tomorrow.mp3' | 'video-creation/music/cinematic/spooky_orchestral_theme.mp3' | 'video-creation/music/upbeat/light_upbeat_melody.mp3' | 'video-creation/music/upbeat/puzzle_time.mp3' | 'video-creation/music/upbeat/stomping_drums_rhythm.mp3' | 'video-creation/music/upbeat/stomps_and_claps_rhythm_track.mp3' | 'video-creation/music/news/news_theme.mp3' | 'video-creation/music/vintage/burlesque_sweetheart.mp3' | 'video-creation/music/other/highway_nocturne_national_sweetheart.mp3' | 'video-creation/music/other/haptic_sensation.mp3'; declare const MusicTrack: { readonly VIDEO_CREATION_MUSIC_ADVENTURE_TEMPLE_OF_TREASURES_MP3: "video-creation/music/adventure/temple_of_treasures.mp3"; readonly VIDEO_CREATION_MUSIC_ADVENTURE_ADVENTUROUS_INTRO_MP3: "video-creation/music/adventure/adventurous_intro.mp3"; readonly VIDEO_CREATION_MUSIC_AMBIENT_GENTLE_AMBIENT_LOOP_MP3: "video-creation/music/ambient/gentle_ambient_loop.mp3"; readonly VIDEO_CREATION_MUSIC_AMBIENT_SERENE_AMBIENCE_MP3: "video-creation/music/ambient/serene_ambience.mp3"; readonly VIDEO_CREATION_MUSIC_AMBIENT_SOOTHING_AMBIENCE_MP3: "video-creation/music/ambient/soothing_ambience.mp3"; readonly VIDEO_CREATION_MUSIC_AMBIENT_SOOTHING_AMBIENT_BACKDROP_MP3: "video-creation/music/ambient/soothing_ambient_backdrop.mp3"; readonly VIDEO_CREATION_MUSIC_AMBIENT_TRANQUIL_AMBIENCE_MP3: "video-creation/music/ambient/tranquil_ambience.mp3"; readonly VIDEO_CREATION_MUSIC_AMBIENT_DREAMSCAPE_MP3: "video-creation/music/ambient/dreamscape.mp3"; readonly VIDEO_CREATION_MUSIC_AMBIENT_BELONGING_RESONANCE_MP3: "video-creation/music/ambient/belonging_resonance.mp3"; readonly VIDEO_CREATION_MUSIC_AMBIENT_VIVID_MEMORIES_MP3: "video-creation/music/ambient/vivid_memories.mp3"; readonly VIDEO_CREATION_MUSIC_CINEMATIC_CINEMATIC_INTRO_MP3: "video-creation/music/cinematic/cinematic_intro.mp3"; readonly VIDEO_CREATION_MUSIC_CINEMATIC_CINEMATIC_TEASER_MP3: "video-creation/music/cinematic/cinematic_teaser.mp3"; readonly VIDEO_CREATION_MUSIC_CINEMATIC_DRAMATIC_CINEMATIC_SCORE_MP3: "video-creation/music/cinematic/dramatic_cinematic_score.mp3"; readonly VIDEO_CREATION_MUSIC_CINEMATIC_THRILLER_CINEMA_TRAILER_MP3: "video-creation/music/cinematic/thriller_cinema_trailer.mp3"; readonly VIDEO_CREATION_MUSIC_CINEMATIC_FRACTURED_PAINTINGS_MP3: "video-creation/music/cinematic/fractured_paintings.mp3"; readonly VIDEO_CREATION_MUSIC_CINEMATIC_PROMISE_OF_TOMORROW_MP3: "video-creation/music/cinematic/promise_of_tomorrow.mp3"; readonly VIDEO_CREATION_MUSIC_CINEMATIC_SPOOKY_ORCHESTRAL_THEME_MP3: "video-creation/music/cinematic/spooky_orchestral_theme.mp3"; readonly VIDEO_CREATION_MUSIC_UPBEAT_LIGHT_UPBEAT_MELODY_MP3: "video-creation/music/upbeat/light_upbeat_melody.mp3"; readonly VIDEO_CREATION_MUSIC_UPBEAT_PUZZLE_TIME_MP3: "video-creation/music/upbeat/puzzle_time.mp3"; readonly VIDEO_CREATION_MUSIC_UPBEAT_STOMPING_DRUMS_RHYTHM_MP3: "video-creation/music/upbeat/stomping_drums_rhythm.mp3"; readonly VIDEO_CREATION_MUSIC_UPBEAT_STOMPS_AND_CLAPS_RHYTHM_TRACK_MP3: "video-creation/music/upbeat/stomps_and_claps_rhythm_track.mp3"; readonly VIDEO_CREATION_MUSIC_NEWS_NEWS_THEME_MP3: "video-creation/music/news/news_theme.mp3"; readonly VIDEO_CREATION_MUSIC_VINTAGE_BURLESQUE_SWEETHEART_MP3: "video-creation/music/vintage/burlesque_sweetheart.mp3"; readonly VIDEO_CREATION_MUSIC_OTHER_HIGHWAY_NOCTURNE_NATIONAL_SWEETHEART_MP3: "video-creation/music/other/highway_nocturne_national_sweetheart.mp3"; readonly VIDEO_CREATION_MUSIC_OTHER_HAPTIC_SENSATION_MP3: "video-creation/music/other/haptic_sensation.mp3"; }; type TemperatureParam = number; type MaxTokensParam = number; type StreamParam = boolean; type StopParam = Array<string>; type TopPParam = number; type TopKParam = number; type FrequencyPenaltyParam = number; type PresencePenaltyParam = number; type LogitBiasParam = { [key: string]: unknown; }; type UserParam = string; type NParam = number; type NumberOfSteps = number; type Resolution = string; type ImageSamplerName = string; type ImageScale = unknown; type ImageWidth = number; type ImageHeight = number; type SeedParam = number; type ResponseFormatParam = string; type ToolsParam = Array<string>; type ToolChoiceParam = string; type CreateChatCompletionData = { body: { model?: ChatModel; messages?: Array<CompoundMessage>; temperature?: TemperatureParam; max_tokens?: MaxTokensParam; stream?: StreamParam; stop?: StopParam; top_p?: TopPParam; top_k?: TopKParam; frequency_penalty?: FrequencyPenaltyParam; presence_penalty?: PresencePenaltyParam; logit_bias?: LogitBiasParam; user?: UserParam; n?: NParam; seed?: SeedParam; response_format?: ResponseFormatParam; tools?: ToolsParam; tool_choice?: ToolChoiceParam; }; path?: never; query?: never; url: '/v1/chat/completions'; }; type CreateChatCompletionErrors = { 400: { error?: string; }; 401: { error?: string; }; 500: { error?: string; }; }; type CreateChatCompletionError = CreateChatCompletionErrors[keyof CreateChatCompletionErrors]; type CreateChatCompletionResponses = { 200: { id?: string; object?: string; created?: Created; model?: ChatModel; choices?: Array<{ index?: number; message?: Message; delta?: Delta; finish_reason?: string; }>; usage?: { prompt_tokens?: number; completion_tokens?: number; total_tokens?: number; }; nanoGPT?: { cost?: Cost; inputTokens?: number; outputTokens?: number; paymentSource?: PaymentSource; }; }; }; type CreateChatCompletionResponse = CreateChatCompletionResponses[keyof CreateChatCompletionResponses]; type GenerateImageData = { body: { prompt: string; model: ImageModel; width: ImageWidth; height: ImageHeight; negative_prompt?: NegativePrompt; nImages?: NParam; num_steps?: NumberOfSteps; resolution?: Resolution; sampler_name?: ImageSamplerName; scale?: ImageScale; }; path?: never; query?: never; url: '/generate-image'; }; type GenerateImageErrors = { 400: { error?: string; }; 401: { error?: string; }; 500: { error?: string; }; }; type GenerateImageError = GenerateImageErrors[keyof GenerateImageErrors]; type GenerateImageResponses = { 200: { created?: number; data?: Array<{ url?: string; b64_json?: string; }>; cost?: Cost; paymentSource?: PaymentSource; remainingBalance?: RemainingBalance; }; }; type GenerateImageResponse = GenerateImageResponses[keyof GenerateImageResponses]; type ModelsData = { body?: never; path?: never; query?: never; url: '/v1/models'; }; type ModelsErrors = { 400: { error?: string; }; 401: { error?: string; }; 500: { error?: string; }; }; type ModelsError = ModelsErrors[keyof ModelsErrors]; type ModelsResponses = { 200: { object?: _Object; data?: Array<{ id?: string; object?: _Object; created?: Created; owned_by?: string; }>; }; }; type ModelsResponse = ModelsResponses[keyof ModelsResponses]; type BalanceData = { body?: never; path?: never; query?: never; url: '/check-nano-balance'; }; type BalanceErrors = { 400: { error?: string; }; 401: { error?: string; }; 500: { error?: string; }; }; type BalanceError = BalanceErrors[keyof BalanceErrors]; type BalanceResponses = { 200: { balance?: unknown; receivable?: unknown; earned?: unknown; nanoDepositAddress?: NanoAddress; nanoReturnAddress?: NanoAddress; }; }; type BalanceResponse = BalanceResponses[keyof BalanceResponses]; type GenerateVideoData = { body: unknown & { prompt?: string; script?: ScriptStyle; framework: VideoFramework; targetLengthInWords: number; directorNotes?: string; imageConfig: { model?: 'recraft' | 'flux_lora'; style?: RecraftStyle; loraConfig?: { loraSlug?: FluxLoraStyle; }; }; voice: VoiceId; captionsShow: boolean; captionsStyle: CaptionStyle; effects: { transition?: TransitionEffect; floating?: boolean; }; quality: VideoQuality; motion: { enabled?: boolean; strength?: number; }; music: MusicTrack; }; path?: never; query?: never; url: '/v1/video'; }; type GenerateVideoErrors = { 400: { error?: string; }; 401: { error?: string; }; 500: { error?: string; }; }; type GenerateVideoError = GenerateVideoErrors[keyof GenerateVideoErrors]; type GenerateVideoResponses = { 200: { runId: string; projectId: string; status?: string; cost?: number; paymentSource?: string; }; }; type GenerateVideoResponse = GenerateVideoResponses[keyof GenerateVideoResponses]; type CheckVideoStatusData = { body?: never; path?: never; query: { runId: string; projectId: string; cost?: number; paymentSource?: string; }; url: '/v1/video/status'; }; type CheckVideoStatusErrors = { 400: { error?: string; }; 401: { error?: string; }; 500: { error?: string; }; }; type CheckVideoStatusError = CheckVideoStatusErrors[keyof CheckVideoStatusErrors]; type CheckVideoStatusResponses = { 200: { status?: 'PENDING' | 'PROCESSING' | 'COMPLETED' | 'FAILED'; data?: { isCompleted?: boolean; isSuccess?: boolean; output?: { url?: string; }; message?: string; }; }; }; type CheckVideoStatusResponse = CheckVideoStatusResponses[keyof CheckVideoStatusResponses]; type ClientOptions = { baseUrl: 'https://nano-gpt.com/api' | (string & {}); }; type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options$1<TData, ThrowOnError> & { client?: Client; meta?: Record<string, unknown>; }; declare const createChatCompletion: <ThrowOnError extends boolean = false>(options: Options<CreateChatCompletionData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{ id?: string; object?: string; created?: Created; model?: ChatModel; choices?: Array<{ index?: number; message?: Message; delta?: Delta; finish_reason?: string; }>; usage?: { prompt_tokens?: number; completion_tokens?: number; total_tokens?: number; }; nanoGPT?: { cost?: Cost; inputTokens?: number; outputTokens?: number; paymentSource?: PaymentSource; }; }, CreateChatCompletionError, ThrowOnError>; declare const generateImage: <ThrowOnError extends boolean = false>(options: Options<GenerateImageData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{ created?: number; data?: Array<{ url?: string; b64_json?: string; }>; cost?: Cost; paymentSource?: PaymentSource; remainingBalance?: RemainingBalance; }, GenerateImageError, ThrowOnError>; declare const models: <ThrowOnError extends boolean = false>(options?: Options<ModelsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{ object?: _Object; data?: Array<{ id?: string; object?: _Object; created?: Created; owned_by?: string; }>; }, ModelsError, ThrowOnError>; declare const balance: <ThrowOnError extends boolean = false>(options?: Options<BalanceData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{ balance?: unknown; receivable?: unknown; earned?: unknown; nanoDepositAddress?: NanoAddress; nanoReturnAddress?: NanoAddress; }, BalanceError, ThrowOnError>; declare const generateVideo: <ThrowOnError extends boolean = false>(options: Options<GenerateVideoData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{ runId: string; projectId: string; status?: string; cost?: number; paymentSource?: string; }, GenerateVideoError, ThrowOnError>; declare const checkVideoStatus: <ThrowOnError extends boolean = false>(options: Options<CheckVideoStatusData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{ status?: "PENDING" | "PROCESSING" | "COMPLETED" | "FAILED"; data?: { isCompleted?: boolean; isSuccess?: boolean; output?: { url?: string; }; message?: string; }; }, CheckVideoStatusError, ThrowOnError>; type APIKey = string; interface NanoGPTClientConfig { apiKey: APIKey; client?: Client; } type StreamType = <ThrowOnError extends boolean = false>(options: Options$1<CreateChatCompletionData, ThrowOnError>) => Promise<AsyncGenerator<CreateChatCompletionResponse | undefined, any, any>>; interface Stream { simple: (message: string, model: ChatModel) => Promise<AsyncGenerator<string | undefined, any, any>>; advanced: StreamType; } interface Chat { simple: (message: string, model: ChatModel) => Promise<string | undefined>; advanced: <ThrowOnError extends boolean = false>(options: Options$1<CreateChatCompletionData, ThrowOnError>) => RequestResult<CreateChatCompletionResponse, CreateChatCompletionError, ThrowOnError>; stream: () => Stream; } interface Image { simple: (prompt: string, model: ImageModel) => Promise<string | undefined>; advanced: <ThrowOnError extends boolean = false>(options: Options$1<GenerateImageData, ThrowOnError>) => RequestResult<GenerateImageResponse, GenerateImageError, ThrowOnError>; } interface Video { status: <ThrowOnError extends boolean = false>(options: Options$1<CheckVideoStatusData, ThrowOnError>) => RequestResult<CheckVideoStatusResponse, CheckVideoStatusError, ThrowOnError>; advanced: <ThrowOnError extends boolean = false>(options: Options$1<GenerateVideoData, ThrowOnError>) => RequestResult<GenerateVideoResponse, GenerateVideoError, ThrowOnError>; } interface APIClient { chat: () => Chat; image: () => Image; video: () => Video; } declare class NanoGPTClient implements APIClient { client: Client; private streamClient; private streamHeaders; constructor(config: NanoGPTClientConfig); chat(): Chat; image(): Image; video(): Video; models(): Promise<({ data: { object?: _Object; data?: Array<{ id?: string; object?: _Object; created?: Created; owned_by?: string; }>; }; error: undefined; } | { data: undefined; error: ModelsError; }) & { request: Request; response: Response; }>; balance(): Promise<({ data: { balance?: unknown; receivable?: unknown; earned?: unknown; nanoDepositAddress?: NanoAddress; nanoReturnAddress?: NanoAddress; }; error: undefined; } | { data: undefined; error: BalanceError; }) & { request: Request; response: Response; }>; } export { type APIClient, type APIKey, type BalanceData, type BalanceError, type BalanceErrors, type BalanceResponse, type BalanceResponses, CaptionStyle, type Chat, ChatModel, type CheckVideoStatusData, type CheckVideoStatusError, type CheckVideoStatusErrors, type CheckVideoStatusResponse, type CheckVideoStatusResponses, type ClientOptions, type CompoundMessage, type Cost, type CreateChatCompletionData, type CreateChatCompletionError, type CreateChatCompletionErrors, type CreateChatCompletionResponse, type CreateChatCompletionResponses, type Created, type Delta, FluxLoraStyle, type FrequencyPenaltyParam, type GenerateImageData, type GenerateImageError, type GenerateImageErrors, type GenerateImageResponse, type GenerateImageResponses, type GenerateVideoData, type GenerateVideoError, type GenerateVideoErrors, type GenerateVideoResponse, type GenerateVideoResponses, type Image, type ImageHeight, ImageModel, type ImageSamplerName, type ImageScale, type ImageWidth, type LogitBiasParam, type MaxTokensParam, type Message, type ModelsData, type ModelsError, type ModelsErrors, type ModelsResponse, type ModelsResponses, type MultipartContent, type MultipartImageUrl, type MultipartText, MusicTrack, type NParam, type NanoAddress, NanoGPTClient, type NanoGPTClientConfig, type NegativePrompt, type NumberOfSteps, type Options, PaymentSource, type PresencePenaltyParam, RecraftStyle, type RemainingBalance, type Resolution, type ResponseFormatParam, Role, ScriptStyle, type SeedParam, type StopParam, type Stream, type StreamParam, type StreamType, type TemperatureParam, type TextContent, type ToolChoiceParam, type ToolsParam, type TopKParam, type TopPParam, TransitionEffect, type UserParam, type Video, VideoFramework, VideoQuality, VoiceId, _Object, balance, checkVideoStatus, createChatCompletion, generateImage, generateVideo, models };