Get the API key: Difference between revisions
From Master of Neuroscience Wiki
Created page with "Test your API key:<syntaxhighlight lang="python3"> from openai import OpenAI # API configuration api_key = "XXXXXXXXXXXXXXXXX" # Replace with your API key base_url = "https://chat-ai.academiccloud.de/v1" # Start OpenAI client client = OpenAI(api_key=api_key, base_url=base_url) # List all available models models = client.models.list() # Print all models for model in models: print(model.id) print() </syntaxhighlight>The result is:<syntaxhighlight lang="python-cons..." |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
We start the voyage here: https://kisski.gwdg.de/en/leistungen/2-02-llm-service/ | |||
Click book: | |||
[[File:2025-11-03 18-42.png|800x800px]] | |||
Continue: | |||
[[File:2025-11-03 18-43.png|800x800px]] | |||
Select the SSO option: | |||
[[File:2025-11-03 18-43 1.png|800x800px]] | |||
Find University of Bremen and select it: | |||
[[File:2025-11-03 18-44.png|800x800px]] | |||
You are then redirected to the University of Bremen Identity Management: | |||
[[File:2025-11-03 18-44 1.png|965x965px]] | |||
Some fine-print to understand: | |||
[[File:2025-11-03 18-45.png|985x985px]] | |||
[[File:2025-11-03 18-45 1.png|718x718px]] | |||
Back to the request form: You need to fill out everything!!! | |||
[[File:2025-11-03 18-45 2.png|816x816px]] | |||
More to click and fill out. For the why, I wrote that I need the API Key to connect VS Code with the LLM models. | |||
[[File:2025-11-03 18-46.png|800x800px]] | |||
First you get an automatic message. After a bit longer you will get the API key in a second email. | |||
Test your API key:<syntaxhighlight lang="python3"> | Test your API key:<syntaxhighlight lang="python3"> | ||
from openai import OpenAI | from openai import OpenAI | ||
Latest revision as of 17:56, 3 November 2025
We start the voyage here: https://kisski.gwdg.de/en/leistungen/2-02-llm-service/
Click book:
Continue:
Select the SSO option:
Find University of Bremen and select it:
You are then redirected to the University of Bremen Identity Management:
Some fine-print to understand:
Back to the request form: You need to fill out everything!!!
More to click and fill out. For the why, I wrote that I need the API Key to connect VS Code with the LLM models.
First you get an automatic message. After a bit longer you will get the API key in a second email.
Test your API key:
from openai import OpenAI
# API configuration
api_key = "XXXXXXXXXXXXXXXXX" # Replace with your API key
base_url = "https://chat-ai.academiccloud.de/v1"
# Start OpenAI client
client = OpenAI(api_key=api_key, base_url=base_url)
# List all available models
models = client.models.list()
# Print all models
for model in models:
print(model.id)
print()
The result is:
qwen3-coder-30b-a3b-instruct
meta-llama-3.1-8b-instruct
openai-gpt-oss-120b
gemma-3-27b-it
qwen3-30b-a3b-thinking-2507
qwen3-30b-a3b-instruct-2507
qwen3-32b
qwen3-235b-a22b
llama-3.3-70b-instruct
qwen2.5-vl-72b-instruct
medgemma-27b-it
qwq-32b
deepseek-r1
deepseek-r1-distill-llama-70b
mistral-large-instruct
qwen2.5-coder-32b-instruct
internvl2.5-8b
teuken-7b-instruct-research
codestral-22b
llama-3.1-sauerkrautlm-70b-instruct
meta-llama-3.1-8b-rag
qwen2.5-omni-7b