google/gemini-3.5-flash 🖼️🔢📝❓ → 📝
Performance
9.7sTypical run time
668.2KTotal runs
About
Google's fast multimodal model with frontier reasoning across agents, coding, and long-context tasks
Example Output
Prompt:
"Write assembly code to describe moving a file from one folder to another"
Output
To move a file in assembly, we use the operating system's system calls. In modern operating systems, "moving" a file within the same filesystem is achieved by renaming its path.
Here is the assembly code written for Linux x86_64 using NASM syntax. It uses the sys_rename system call (system call number 82).
Assembly Code (Linux x86_64)
section .data
; Define the source and destination paths (must be null-terminated)
src_path db "/tmp/folder_A/myfile.txt", 0
dst_path db "/tmp/folder_B/myfile.txt", 0
; Error/Success messages
success_msg db "File moved successfully!", 10, 0
success_len equ $ - success_msg
error_msg db "Error moving file.", 10, 0
error_len equ $ - error_msg
section .text
global _start
_start:
;---------------------------------------------------------
; sys_rename (syscall 82)
; Arguments:
; rax = 82 (syscall number for sys_rename)
; rdi = const char *oldpath (source)
; rsi = const char *newpath (destination)
;---------------------------------------------------------
mov rax, 82 ; syscall number for sys_rename
mov rdi, src_path ; pointer to old path
mov rsi, dst_path ; pointer to new path
syscall ; call kernel
; Check the return value in RAX
; In Linux, a negative return value indicates an error (e.g., -2 for file not found)
test rax, rax
js .on_error ; Jump if Sign flag is set (RAX is negative)
; If successful, print success message
mov rax, 1 ; sys_write
mov rdi, 1 ; stdout
mov rsi, success_msg ; message pointer
mov rdx, success_len ; message length
syscall
jmp .exit
.on_error:
; If failed, print error message
mov rax, 1 ; sys_write
mov rdi, 1 ; stdout
mov rsi, error_msg ; message pointer
mov rdx, error_len ; message length
syscall
jmp .exit_failure
.exit:
; Exit program with status 0 (success)
mov rax, 60 ; sys_exit
xor rdi, rdi ; exit code 0
syscall
.exit_failure:
; Exit program with status 1 (error)
mov rax, 60 ; sys_exit
mov rdi, 1 ; exit code 1
syscall
How to Compile and Run (Linux)
To test this code, you will need nasm (Netwide Assembler) and ld (GNU Linker).
Create the dummy folders and file to test:
mkdir -p /tmp/folder_A /tmp/folder_B touch /tmp/folder_A/myfile.txtSave the assembly code into a file named
move.asm.Assemble and link the code:
nasm -f elf64 move.asm -o move.o ld move.o -o moveRun the executable:
./move
How it Works (Under the Hood)
- The Rename Syscall (
sys_rename): Moving a file is technically a "rename" operation in the OS kernel. It updates the directory entry pointers rather than physically rewriting the file data on the disk (as long as it remains on the same partition). - Registers:
raxholds the system call ID (82for rename,1for write,60for exit).rdiandrsipass the pointers of our source and destination strings to the kernel.
- Error Handling: The CPU
test rax, raxchecks if the kernel returned a negative number (error). If so, it branches to the error printing section.
Performance Metrics
9.69s
Prediction Time
9.74s
Total Time
All Input Parameters
{
"top_p": 0.95,
"images": [],
"prompt": "Write assembly code to describe moving a file from one folder to another",
"videos": [],
"temperature": 1,
"thinking_level": "none",
"max_output_tokens": 65535
}
Input Parameters
- audio
- Input audio to send with the prompt (max 1 audio file, up to 8.4 hours)
- top_p
- Nucleus sampling parameter - the model considers the results of the tokens with top_p probability mass
- images
- Input images to send with the prompt (max 10 images, each up to 7MB)
- prompt (required)
- The text prompt to send to the model
- videos
- Input videos to send with the prompt (max 10 videos, each up to 45 minutes)
- video_fps
- Frame rate (frames per second) at which to sample input videos. Higher values give the model more frames to reason over (useful for fast-moving footage) but consume more tokens. Omit to use the default sampling rate (1 fps).
- temperature
- Sampling temperature between 0 and 2
- thinking_level
- Thinking level for reasoning (low or high). Replaces thinking_budget for Gemini 3 models.
- max_output_tokens
- Maximum number of tokens to generate
- system_instruction
- System instruction to guide the model's behavior
Output Schema
Output
Example Execution Logs
No sid Generating text with gemini-3.5-flash... Warning: there are non-text parts in the response: ['thought_signature'], returning concatenated text result from text parts. Check the full candidates.content.parts accessor to get the full model response. Warning: there are non-text parts in the response: ['thought_signature'], returning concatenated text result from text parts. Check the full candidates.content.parts accessor to get the full model response. Text generation completed in 9.54s Input token count: 13 Output token count: 998
Version Details
- Version ID
f1f4ac4b15e9cb4bb13555d222fa247dbc136ac6d4d545a96033619ebd7bc5dd- Version Created
- October 6, 2026